clang-1/unittests
Daniel Jasper 5f684e90c2 Fix partial-match-bind-behavior with forEachDescendant() matchers.
The problem is that a partial match of an (explicit or implicit) allOf matcher
binds results, i.e.

recordDecl(decl().bind("x"), hasName("A"))

can very well bind a record that is not named "A". With this fix, the common
cases of stumbling over this bug are fixed by the BoundNodesMap overwriting the
results of a partial match. An error can still be created with a weird
combination of anyOf and allOf (see inactive test). We need to decide whether
this is worth fixing, as the fix will have performance impact.

Review: http://llvm-reviews.chandlerc.com/D124

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168177 91177308-0d34-0410-b5e6-96231b3b80d8
2012-11-16 18:39:22 +00:00
..
AST Fix a source range regression in C++ new expressions with call initializers. 2012-11-08 22:53:48 +00:00
ASTMatchers Fix partial-match-bind-behavior with forEachDescendant() matchers. 2012-11-16 18:39:22 +00:00
Basic clang/unittests: Fixup corresponding to Doug's r168136. 2012-11-16 04:40:11 +00:00
Frontend Split library clangRewrite into clangRewriteCore and clangRewriteFrontend. 2012-09-01 05:09:24 +00:00
Lex clang/unittests: Fixup corresponding to Doug's r168136. 2012-11-16 04:40:11 +00:00
Tooling unittests/ToolingTest.cpp: Suppress newFrontendActionFactory.InjectsEndOfSourceFileCallback on Win32 for now. Investigating. 2012-10-25 09:38:41 +00:00
CMakeLists.txt add AST unittests to CMake build system 2012-07-23 20:11:34 +00:00
Makefile Adds the AST Matcher library, which provides a in-C++ DSL to express 2012-07-06 05:48:52 +00:00