]> granicus.if.org Git - clang/commit
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)
commit7387673f83b8b37f660422947c9990778ba88193
tree898952d19423f3cd49a7d5579e6024bb485c63ec
parentcda165056890b8ccfc6e2897c711388c5fb518c0
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).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174315 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/ASTMatchers/ASTMatchers.h
include/clang/ASTMatchers/ASTMatchersInternal.h
unittests/ASTMatchers/ASTMatchersTest.cpp