hanchenye-llvm-project/clang/lib/Tooling
Manuel Klimek d3aa1f4a63 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.

llvm-svn: 222765
2014-11-25 17:01:06 +00:00
..
Core [CMake] Prune redundant libdeps. 2014-10-30 01:37:44 +00:00
ArgumentsAdjusters.cpp [clang-tidy] Move -extra-arg handling to CommonOptionsProvider 2014-11-04 08:51:24 +00:00
CMakeLists.txt Refactor libTooling to reduce required dependencies. 2014-10-29 18:55:09 +00:00
CommonOptionsParser.cpp [clang-tidy] Move -extra-arg handling to CommonOptionsProvider 2014-11-04 08:51:24 +00:00
CompilationDatabase.cpp Driver: Use pointee_iterator rather than iterating over unique_ptrs 2014-10-03 01:04:53 +00:00
FileMatchTrie.cpp [C++11] Add 'override' keyword to virtual methods that override their base class. 2014-03-15 04:29:04 +00:00
JSONCompilationDatabase.cpp Sure-up MemoryBuffer ownership in JSONCompilationDatabase's ctor. 2014-08-08 22:01:06 +00:00
Makefile Refactor libTooling to reduce required dependencies. 2014-10-29 18:55:09 +00:00
Refactoring.cpp Refactor libTooling to reduce required dependencies. 2014-10-29 18:55:09 +00:00
RefactoringCallbacks.cpp
Tooling.cpp Re-apply r222646 (was reverted in r222667). Adding 4 ASTMatchers: typedefDecl, isInMainFile, isInSystemFile, isInFileMatchingName 2014-11-25 17:01:06 +00:00