Home
last modified time | relevance | path

Searched refs:DeclarationMatcher (Results 1 – 10 of 10) sorted by relevance

/external/clang/unittests/ASTMatchers/
DASTMatchersNarrowingTest.cpp51 TEST(DeclarationMatcher, MatchHas) { in TEST() argument
52 DeclarationMatcher HasClassX = recordDecl(has(recordDecl(hasName("X")))); in TEST()
56 DeclarationMatcher YHasClassX = in TEST()
64 TEST(DeclarationMatcher, MatchHasRecursiveAllOf) { in TEST() argument
65 DeclarationMatcher Recursive = in TEST()
122 TEST(DeclarationMatcher, MatchHasRecursiveAnyOf) { in TEST() argument
123 DeclarationMatcher Recursive = in TEST()
153 TEST(DeclarationMatcher, MatchNot) { in TEST() argument
154 DeclarationMatcher NotClassX = in TEST()
166 DeclarationMatcher ClassXHasNotClassY = in TEST()
[all …]
DASTMatchersInternalTest.cpp25 DeclarationMatcher HasEmptyName = recordDecl(hasName("")); in TEST()
32 DeclarationMatcher HasEmptyName = recordDecl(matchesName("")); in TEST()
39 DeclarationMatcher IsDerivedFromEmpty = cxxRecordDecl(isDerivedFrom("")); in TEST()
63 DeclarationMatcher HasClassB = just(has(recordDecl(hasName("B")).bind("b"))); in TEST()
85 DeclarationMatcher HasClassB = in TEST()
DASTMatchersNodeTest.cpp41 DeclarationMatcher NamedX = namedDecl(hasName("X")); in TEST()
54 DeclarationMatcher NamedX = namedDecl(matchesName("::X")); in TEST()
65 DeclarationMatcher StartsWithNo = namedDecl(matchesName("::no")); in TEST()
69 DeclarationMatcher Abc = namedDecl(matchesName("a.*b.*c")); in TEST()
75 DeclarationMatcher StartsWithK = namedDecl(matchesName(":k[^:]*$")); in TEST()
83 TEST(DeclarationMatcher, MatchClass) { in TEST() argument
84 DeclarationMatcher ClassMatcher(recordDecl()); in TEST()
91 DeclarationMatcher ClassX = recordDecl(recordDecl(hasName("X"))); in TEST()
98 TEST(DeclarationMatcher, translationUnitDecl) { in TEST() argument
113 TEST(DeclarationMatcher, LinkageSpecification) { in TEST() argument
[all …]
DASTMatchersTraversalTest.cpp22 TEST(DeclarationMatcher, hasMethod) { in TEST() argument
29 TEST(DeclarationMatcher, ClassDerivedFromDependentTemplateSpecialization) { in TEST() argument
39 TEST(DeclarationMatcher, hasDeclContext) { in TEST() argument
268 DeclarationMatcher ClassX = recordDecl(hasName("X")); in TEST()
277 DeclarationMatcher ClassX = recordDecl(hasName("X")); in TEST()
364 DeclarationMatcher IntParam = parmVarDecl(hasType(isInteger())).bind("param"); in TEST()
377 DeclarationMatcher IntParam = parmVarDecl(hasType(isInteger())).bind("param"); in TEST()
406 DeclarationMatcher IntParam = parmVarDecl(hasType(isInteger())).bind("param"); in TEST()
430 DeclarationMatcher IntParam = parmVarDecl(hasType(isInteger())).bind("param"); in TEST()
1285 DeclarationMatcher MatchesInit = varDecl(hasInitializer(anything())); in TEST()
[all …]
/external/clang/unittests/AST/
DDeclPrinterTest.cpp71 const DeclarationMatcher &NodeMatch, in PrintedDeclMatches()
114 const DeclarationMatcher &NodeMatch, in PrintedDeclCXX98Matches()
137 const DeclarationMatcher &NodeMatch, in PrintedDeclCXX11Matches()
149 const DeclarationMatcher &NodeMatch, in PrintedDeclCXX11nonMSCMatches()
161 PrintedDeclCXX1ZMatches(StringRef Code, const DeclarationMatcher &NodeMatch, in PrintedDeclCXX1ZMatches()
173 const DeclarationMatcher &NodeMatch, in PrintedDeclObjCMatches()
DNamedDeclPrinterTest.cpp66 const DeclarationMatcher &NodeMatch, in PrintedNamedDeclMatches()
/external/clang/include/clang/ASTMatchers/
DASTMatchFinder.h149 void addMatcher(const DeclarationMatcher &NodeMatch,
DASTMatchers.h123 typedef internal::Matcher<Decl> DeclarationMatcher; typedef
/external/v8/tools/clang/base_bind_rewriters/
DBaseBindRewriters.cpp197 DeclarationMatcher GetMatcher() { in GetMatcher()
/external/clang/lib/ASTMatchers/
DASTMatchFinder.cpp901 void MatchFinder::addMatcher(const DeclarationMatcher &NodeMatch, in addMatcher()