Re-apply r222646 (was reverted in r222667). Adding 4 ASTMatchers: typedefDecl,...
Re-apply r222646 (was reverted in r222667). Adding 4 ASTMatchers: typedefDecl, isInMainFile, isInSystemFile, isInFileMatchingName Change to original: ifndef out tests in Windows due to /-separated paths. Summary: Often one is only interested in matches within the main-file or matches that are not within a system-header, for which this patch adds isInMainFile and isInSystemFile. They take no arguments and narrow down the matches. The isInFileMatchingName is mainly thought for interactive clang-query-sessions, to make a matcher more specific without restarting the session with the files you are interested in for that moment. It takes a string that will be used as regular-expression to match the filename of where the matched node is expanded. Patch by Hendrik von Prince. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@222765 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- docs/LibASTMatchersReference.html 146 additions, 1 deletiondocs/LibASTMatchersReference.html
- include/clang/ASTMatchers/ASTMatchers.h 92 additions, 0 deletionsinclude/clang/ASTMatchers/ASTMatchers.h
- include/clang/Tooling/Tooling.h 8 additions, 3 deletionsinclude/clang/Tooling/Tooling.h
- lib/ASTMatchers/Dynamic/Registry.cpp 4 additions, 0 deletionslib/ASTMatchers/Dynamic/Registry.cpp
- lib/Tooling/Tooling.cpp 11 additions, 3 deletionslib/Tooling/Tooling.cpp
- unittests/ASTMatchers/ASTMatchersTest.cpp 53 additions, 0 deletionsunittests/ASTMatchers/ASTMatchersTest.cpp
- unittests/ASTMatchers/ASTMatchersTest.h 7 additions, 5 deletionsunittests/ASTMatchers/ASTMatchersTest.h
Loading
Please register or sign in to comment