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
Showing
- include/clang/ASTMatchers/ASTMatchers.h 26 additions, 0 deletionsinclude/clang/ASTMatchers/ASTMatchers.h
- include/clang/ASTMatchers/ASTMatchersInternal.h 38 additions, 3 deletionsinclude/clang/ASTMatchers/ASTMatchersInternal.h
- unittests/ASTMatchers/ASTMatchersTest.cpp 24 additions, 0 deletionsunittests/ASTMatchers/ASTMatchersTest.cpp
Loading
Please register or sign in to comment