clang-1/unittests/ASTMatchers
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
..
ASTMatchersTest.cpp Fix partial-match-bind-behavior with forEachDescendant() matchers. 2012-11-16 18:39:22 +00:00
ASTMatchersTest.h Fix binding of nodes in case of forEach..() matchers. 2012-11-11 22:14:55 +00:00
CMakeLists.txt [ms-inline asm] Add various MC components to clang build to support MS-style inline assembly. 2012-08-09 17:17:01 +00:00
Makefile Split library clangRewrite into clangRewriteCore and clangRewriteFrontend. 2012-09-01 05:09:24 +00:00