Lines Matching refs:DeclarationMatcher
23 DeclarationMatcher HasEmptyName = recordDecl(hasName(""));
30 DeclarationMatcher HasEmptyName = recordDecl(matchesName(""));
37 DeclarationMatcher IsDerivedFromEmpty = recordDecl(isDerivedFrom(""));
50 DeclarationMatcher NamedX = namedDecl(hasName("X"));
63 DeclarationMatcher NamedX = namedDecl(matchesName("::X"));
74 DeclarationMatcher StartsWithNo = namedDecl(matchesName("::no"));
78 DeclarationMatcher Abc = namedDecl(matchesName("a.*b.*c"));
84 DeclarationMatcher StartsWithK = namedDecl(matchesName(":k[^:]*$"));
92 TEST(DeclarationMatcher, MatchClass) {
93 DeclarationMatcher ClassMatcher(recordDecl());
101 DeclarationMatcher ClassX = recordDecl(recordDecl(hasName("X")));
108 TEST(DeclarationMatcher, ClassIsDerived) {
109 DeclarationMatcher IsDerivedFromX = recordDecl(isDerivedFrom("X"));
117 DeclarationMatcher IsAX = recordDecl(isSameOrDerivedFrom("X"));
125 DeclarationMatcher ZIsDerivedFromX =
322 TEST(DeclarationMatcher, hasMethod) {
329 TEST(DeclarationMatcher, ClassDerivedFromDependentTemplateSpecialization) {
339 TEST(DeclarationMatcher, hasDeclContext) {
365 DeclarationMatcher ClassX = classTemplateDecl(hasName("X"));
371 DeclarationMatcher ClassX = classTemplateDecl(hasName("X"));
418 TEST(DeclarationMatcher, MatchAnyOf) {
419 DeclarationMatcher YOrZDerivedFromX =
428 DeclarationMatcher XOrYOrZOrU =
433 DeclarationMatcher XOrYOrZOrUOrV =
444 TEST(DeclarationMatcher, MatchHas) {
445 DeclarationMatcher HasClassX = recordDecl(has(recordDecl(hasName("X"))));
449 DeclarationMatcher YHasClassX =
457 TEST(DeclarationMatcher, MatchHasRecursiveAllOf) {
458 DeclarationMatcher Recursive =
515 TEST(DeclarationMatcher, MatchHasRecursiveAnyOf) {
516 DeclarationMatcher Recursive =
546 TEST(DeclarationMatcher, MatchNot) {
547 DeclarationMatcher NotClassX =
559 DeclarationMatcher ClassXHasNotClassY =
570 TEST(DeclarationMatcher, HasDescendant) {
571 DeclarationMatcher ZDescendantClassX =
586 DeclarationMatcher ZDescendantClassXHasClassY =
609 DeclarationMatcher ZDescendantClassXDescendantClassY =
753 DeclarationMatcher Matcher = enumConstantDecl(hasName("A"));
803 DeclarationMatcher ClassX = has(recordDecl(hasName("::X")).bind("x"));
846 DeclarationMatcher ClassX = recordDecl(hasName("X")).bind("x");
849 DeclarationMatcher(anyOf(
905 DeclarationMatcher ClassX = recordDecl(hasName("X"));
914 DeclarationMatcher ClassX = recordDecl(hasName("X"));
1057 DeclarationMatcher ClassWithOpStar =
1350 DeclarationMatcher Function1Arg = functionDecl(parameterCountIs(1));
1358 DeclarationMatcher ReferenceClassX = varDecl(
2174 DeclarationMatcher DefinitionOfClassA =
2179 DeclarationMatcher DefinitionOfVariableA =
2184 DeclarationMatcher DefinitionOfMethodA =
2257 DeclarationMatcher HasClassB = just(has(recordDecl(hasName("B")).bind("b")));
2280 DeclarationMatcher HasClassB =
2911 DeclarationMatcher MatchesInit = varDecl(hasInitializer(anything()));
3046 DeclarationMatcher m = recordDecl(