llvm-project/clang/unittests
Gabor Horvath 1b3f8db8b6 [ASTMatchers] New matcher forFunction
Summary: Matcher proposed in the review of checker misc-assign-operator (name pending). Its goal is to find the direct enclosing function declaration of a statement and run the inner matcher on it. Two version is attached in this patch (thus it will not compile), to be decided which approach to take. The second one always chooses one single parent while the first one does a depth-first search upwards (thus a height-first search) and returns the first positive match of the inner matcher (thus it always returns zero or one matches, not more). Further questions: is it enough to implement it in-place, or ASTMatchersInternals or maybe ASTMatchFinder should be involved?

Reviewers: sbenza

Subscribers: aaron.ballman, klimek, o.gyorgy, xazax.hun, cfe-commits

Differential Revision: http://reviews.llvm.org/D19357

llvm-svn: 268490
2016-05-04 11:59:39 +00:00
..
AST [ASTImporter] Implement some expression-related AST node import. 2016-04-14 11:51:27 +00:00
ASTMatchers [ASTMatchers] New matcher forFunction 2016-05-04 11:59:39 +00:00
Basic Basic: move CodeGenOptions from Frontend 2016-04-07 17:49:44 +00:00
CodeGen Make sure the LLVMContext outlive the CompilerInstance 2016-04-14 05:37:41 +00:00
Driver Remove autoconf support 2016-01-26 21:30:40 +00:00
Format Added Fixer implementation and fix() interface in clang-format for removing redundant code. 2016-04-25 15:09:22 +00:00
Frontend Use Backend_EmitMCNull for null codegen unit tests. 2016-02-18 20:27:16 +00:00
Lex Basic: move CodeGenOptions from Frontend 2016-04-07 17:49:44 +00:00
Rewrite Remove autoconf support 2016-01-26 21:30:40 +00:00
Sema Remove autoconf support 2016-01-26 21:30:40 +00:00
StaticAnalyzer Remove autoconf support 2016-01-26 21:30:40 +00:00
Tooling [Tooling] Fix getting fully qualified names of template alias types. 2016-04-20 22:12:07 +00:00
libclang tests: Add explicit -stdlib=libstdc++ to tests that require it 2016-02-12 07:48:28 +00:00
CMakeLists.txt [CMake] Don't build the libclang tests unless you're building libclang 2015-12-04 23:12:19 +00:00