Lines Matching refs:DeclarationMatcher
25 DeclarationMatcher HasEmptyName = recordDecl(hasName("")); in TEST()
32 DeclarationMatcher HasEmptyName = recordDecl(matchesName("")); in TEST()
39 DeclarationMatcher IsDerivedFromEmpty = cxxRecordDecl(isDerivedFrom("")); in TEST()
65 DeclarationMatcher NamedX = namedDecl(hasName("X")); in TEST()
78 DeclarationMatcher NamedX = namedDecl(matchesName("::X")); in TEST()
89 DeclarationMatcher StartsWithNo = namedDecl(matchesName("::no")); in TEST()
93 DeclarationMatcher Abc = namedDecl(matchesName("a.*b.*c")); in TEST()
99 DeclarationMatcher StartsWithK = namedDecl(matchesName(":k[^:]*$")); in TEST()
107 TEST(DeclarationMatcher, MatchClass) { in TEST() argument
108 DeclarationMatcher ClassMatcher(recordDecl()); in TEST()
117 DeclarationMatcher ClassX = recordDecl(recordDecl(hasName("X"))); in TEST()
124 TEST(DeclarationMatcher, ClassIsDerived) { in TEST() argument
125 DeclarationMatcher IsDerivedFromX = cxxRecordDecl(isDerivedFrom("X")); in TEST()
133 DeclarationMatcher IsAX = cxxRecordDecl(isSameOrDerivedFrom("X")); in TEST()
141 DeclarationMatcher ZIsDerivedFromX = in TEST()
338 TEST(DeclarationMatcher, hasMethod) { in TEST() argument
345 TEST(DeclarationMatcher, ClassDerivedFromDependentTemplateSpecialization) { in TEST() argument
355 TEST(DeclarationMatcher, hasDeclContext) { in TEST() argument
382 TEST(DeclarationMatcher, translationUnitDecl) { in TEST() argument
397 TEST(DeclarationMatcher, LinkageSpecification) { in TEST() argument
403 DeclarationMatcher ClassX = classTemplateDecl(hasName("X")); in TEST()
409 DeclarationMatcher ClassX = classTemplateDecl(hasName("X")); in TEST()
466 TEST(DeclarationMatcher, MatchAnyOf) { in TEST() argument
467 DeclarationMatcher YOrZDerivedFromX = cxxRecordDecl( in TEST()
475 DeclarationMatcher XOrYOrZOrU = in TEST()
480 DeclarationMatcher XOrYOrZOrUOrV = in TEST()
500 TEST(DeclarationMatcher, MatchHas) { in TEST() argument
501 DeclarationMatcher HasClassX = recordDecl(has(recordDecl(hasName("X")))); in TEST()
505 DeclarationMatcher YHasClassX = in TEST()
513 TEST(DeclarationMatcher, MatchHasRecursiveAllOf) { in TEST() argument
514 DeclarationMatcher Recursive = in TEST()
571 TEST(DeclarationMatcher, MatchHasRecursiveAnyOf) { in TEST() argument
572 DeclarationMatcher Recursive = in TEST()
602 TEST(DeclarationMatcher, MatchNot) { in TEST() argument
603 DeclarationMatcher NotClassX = in TEST()
615 DeclarationMatcher ClassXHasNotClassY = in TEST()
625 DeclarationMatcher NamedNotRecord = in TEST()
631 TEST(DeclarationMatcher, HasDescendant) { in TEST() argument
632 DeclarationMatcher ZDescendantClassX = in TEST()
647 DeclarationMatcher ZDescendantClassXHasClassY = in TEST()
670 DeclarationMatcher ZDescendantClassXDescendantClassY = in TEST()
691 TEST(DeclarationMatcher, HasDescendantMemoization) { in TEST() argument
692 DeclarationMatcher CannotMemoize = in TEST()
697 TEST(DeclarationMatcher, HasDescendantMemoizationUsesRestrictKind) { in TEST() argument
711 TEST(DeclarationMatcher, HasAttr) { in TEST() argument
718 TEST(DeclarationMatcher, MatchCudaDecl) { in TEST() argument
874 DeclarationMatcher Matcher = enumConstantDecl(hasName("A")); in TEST()
976 DeclarationMatcher ClassX = has(recordDecl(hasName("::X")).bind("x")); in TEST()
1019 DeclarationMatcher ClassX = recordDecl(hasName("X")).bind("x"); in TEST()
1022 DeclarationMatcher(anyOf( in TEST()
1078 DeclarationMatcher ClassX = recordDecl(hasName("X")); in TEST()
1087 DeclarationMatcher ClassX = recordDecl(hasName("X")); in TEST()
1261 DeclarationMatcher ClassWithOpStar = in TEST()
1267 DeclarationMatcher AnyOpStar = functionDecl(hasOverloadedOperatorName("*")); in TEST()
1620 DeclarationMatcher Function1Arg = functionDecl(parameterCountIs(1)); in TEST()
1628 DeclarationMatcher ReferenceClassX = varDecl( in TEST()
2688 DeclarationMatcher DefinitionOfClassA = in TEST()
2693 DeclarationMatcher DefinitionOfVariableA = in TEST()
2698 DeclarationMatcher DefinitionOfMethodA = in TEST()
2771 DeclarationMatcher HasClassB = just(has(recordDecl(hasName("B")).bind("b"))); in TEST()
2793 DeclarationMatcher HasClassB = in TEST()
3465 DeclarationMatcher MatchesInit = varDecl(hasInitializer(anything())); in TEST()
3609 DeclarationMatcher m = recordDecl( in TEST()