/external/llvm-project/clang/unittests/ASTMatchers/ |
D | ASTMatchersTest.h | 86 const Twine &Code, const T &AMatcher, bool ExpectMatch, 93 Finder.addMatcher(AMatcher, &VerifyFound); 95 if (!Finder.addDynamicMatcher(AMatcher, &VerifyDynamicFound)) 144 matchesConditionally(const Twine &Code, const T &AMatcher, bool ExpectMatch, in matchesConditionally() argument 148 Code, AMatcher, ExpectMatch, getCommandLineArgsForTesting(Lang), in matchesConditionally() 159 matches(const Twine &Code, const T &AMatcher, 161 return matchesConditionally(Code, AMatcher, true, TestLanguages); 166 notMatches(const Twine &Code, const T &AMatcher, 168 return matchesConditionally(Code, AMatcher, false, TestLanguages); 172 testing::AssertionResult matchesObjC(const Twine &Code, const T &AMatcher, [all …]
|
D | ASTMatchersInternalTest.cpp | 49 AST_MATCHER_P(Decl, just, internal::Matcher<Decl>, AMatcher) { in AST_MATCHER_P() argument 52 return AMatcher.matches(Node, Finder, Builder); in AST_MATCHER_P() 70 internal::Matcher<Decl>, AMatcher) { in AST_POLYMORPHIC_MATCHER_P() argument 72 Node, AMatcher, Builder, in AST_POLYMORPHIC_MATCHER_P()
|
/external/clang/unittests/ASTMatchers/ |
D | ASTMatchersTest.h | 63 const std::string &Code, const T &AMatcher, bool ExpectMatch, 70 Finder.addMatcher(AMatcher, &VerifyFound); 72 if (!Finder.addDynamicMatcher(AMatcher, &VerifyDynamicFound)) 108 testing::AssertionResult matches(const std::string &Code, const T &AMatcher) { in matches() argument 109 return matchesConditionally(Code, AMatcher, true, "-std=c++11"); in matches() 114 const T &AMatcher) { in notMatches() argument 115 return matchesConditionally(Code, AMatcher, false, "-std=c++11"); in notMatches() 120 const T &AMatcher) { in matchesObjC() argument 122 Code, AMatcher, true, in matchesObjC() 127 testing::AssertionResult matchesC(const std::string &Code, const T &AMatcher) { in matchesC() argument [all …]
|
D | ASTMatchersInternalTest.cpp | 56 AST_MATCHER_P(Decl, just, internal::Matcher<Decl>, AMatcher) { in AST_MATCHER_P() argument 59 return AMatcher.matches(Node, Finder, Builder); in AST_MATCHER_P() 77 internal::Matcher<Decl>, AMatcher) { in AST_POLYMORPHIC_MATCHER_P() argument 79 Node, AMatcher, Builder, in AST_POLYMORPHIC_MATCHER_P()
|
/external/llvm-project/clang/unittests/AST/ |
D | MatchVerifier.h | 37 const MatcherType &AMatcher) { in match() argument 39 return match(Code, AMatcher, Args, Lang_CXX03); in match() 44 const MatcherType &AMatcher, TestLanguage L) { in match() argument 46 return match(Code, AMatcher, Args, L); in match() 51 match(const std::string &Code, const MatcherType &AMatcher, 55 testing::AssertionResult match(const Decl *D, const MatcherType &AMatcher); 82 const MatcherType &AMatcher, in match() argument 85 Finder.addMatcher(AMatcher.bind(""), this); in match() 140 const Decl *D, const MatcherType &AMatcher) { in match() argument 142 Finder.addMatcher(AMatcher.bind(""), this); in match()
|
D | DeclMatcher.h | 32 NodeType *match(const Decl *D, const MatcherType &AMatcher) { in match() argument 34 Finder.addMatcher(AMatcher.bind(""), this); in match() 64 unsigned match(const Decl *D, const MatcherType &AMatcher) { in match() argument 66 Finder.addMatcher(AMatcher.bind(""), this); in match()
|
D | StructuralEquivalenceTest.cpp | 68 TestLanguage Lang, const MatcherType &AMatcher) { in makeDecls() 70 SrcCode0, SrcCode1, Lang, AMatcher, AMatcher); in makeDecls() 117 TestLanguage Lang, const MatcherType &AMatcher) { in makeStmts() 118 return makeStmts(SrcCode0, SrcCode1, Lang, AMatcher, AMatcher); in makeStmts() 126 TestLanguage Lang, const MatcherType &AMatcher) { in makeWrappedStmts() 130 return makeStmts(Wrap(SrcCode0), Wrap(SrcCode1), Lang, AMatcher); in makeWrappedStmts()
|
D | ASTImporterFixtures.h | 314 const MatcherType &AMatcher) { in testImport() argument 318 testImport(FromCode, FromArgs, ToCode, ToArgs, Verifier, AMatcher)); in testImport()
|
/external/clang/unittests/AST/ |
D | MatchVerifier.h | 46 const MatcherType &AMatcher) { in match() argument 48 return match(Code, AMatcher, Args, Lang_CXX); in match() 53 const MatcherType &AMatcher, in match() argument 56 return match(Code, AMatcher, Args, L); in match() 61 const MatcherType &AMatcher, 66 testing::AssertionResult match(const Decl *D, const MatcherType &AMatcher); 91 const std::string &Code, const MatcherType &AMatcher, in match() argument 94 Finder.addMatcher(AMatcher.bind(""), this); in match() 137 const Decl *D, const MatcherType &AMatcher) { in match() argument 139 Finder.addMatcher(AMatcher.bind(""), this); in match()
|
D | ASTImporterTest.cpp | 52 const MatcherType &AMatcher) { in testImport() argument 101 return Verifier.match(Imported, AMatcher); in testImport()
|
/external/clang/unittests/Tooling/ |
D | RefactoringCallbacksTest.cpp | 24 const T &AMatcher, in expectRewritten() argument 27 Finder.addMatcher(AMatcher, &Callback); in expectRewritten()
|
/external/llvm-project/clang/unittests/Tooling/ |
D | RefactoringCallbacksTest.cpp | 22 const T &AMatcher, RefactoringCallback &Callback) { in expectRewritten() argument 25 Finder.addMatcher(traverse(ast_type_traits::TK_AsIs, AMatcher), &Callback); in expectRewritten()
|