Add an eachOf matcher.
authorManuel Klimek <klimek@google.com>
Mon, 4 Feb 2013 09:42:38 +0000 (09:42 +0000)
committerManuel Klimek <klimek@google.com>
Mon, 4 Feb 2013 09:42:38 +0000 (09:42 +0000)
commit88b95872935719214fdd45760df33942cceec42f
tree87c4cb137fd7b135a101118040096177221ce516
parent14e40ec82896cc0d18acbec488a384987eb11f33
Add an eachOf matcher.

eachOf gives closure on the forEach and forEachDescendant matchers.
Before, it was impossible to implement a findAll matcher, as matching
the node or any of its descendants was not expressible (since anyOf
only triggers the first match).

llvm-svn: 174315
clang/include/clang/ASTMatchers/ASTMatchers.h
clang/include/clang/ASTMatchers/ASTMatchersInternal.h
clang/unittests/ASTMatchers/ASTMatchersTest.cpp