Implements the convenience matcher findAll.
We found that findAll has been implemented incorrectly multiple times by various people using the matchers. To prevent further wasted development effort, it makes sense to add it as convenience matcher implemented as eachOf(m, forEachDescendant(m)). This patch also updates the docs with the new matchers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174320 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- docs/LibASTMatchersReference.html 34 additions, 0 deletionsdocs/LibASTMatchersReference.html
- include/clang/ASTMatchers/ASTMatchers.h 23 additions, 0 deletionsinclude/clang/ASTMatchers/ASTMatchers.h
- unittests/ASTMatchers/ASTMatchersTest.cpp 28 additions, 0 deletionsunittests/ASTMatchers/ASTMatchersTest.cpp
Loading
Please register or sign in to comment