Lines Matching refs:hasName

166       Program, callExpr(allOf(callee(functionDecl(hasName("f"))),  in TEST_P()
171 allOf(callee(functionDecl(hasName("f"))), in TEST_P()
173 hasArgument(1, hasType(pointsTo(recordDecl(hasName("T"))))))))); in TEST_P()
176 callee(functionDecl(hasName("f"))), in TEST_P()
178 hasArgument(1, hasType(pointsTo(recordDecl(hasName("T"))))), in TEST_P()
182 callee(functionDecl(hasName("f"))), in TEST_P()
184 hasArgument(1, hasType(pointsTo(recordDecl(hasName("T"))))), in TEST_P()
195 DeclarationMatcher HasClassX = recordDecl(has(recordDecl(hasName("X")))); in TEST_P()
200 recordDecl(hasName("Y"), has(recordDecl(hasName("X")))); in TEST_P()
212 recordDecl(has(recordDecl(has(recordDecl(hasName("X"))), in TEST_P()
213 has(recordDecl(hasName("Y"))), hasName("Z"))), in TEST_P()
214 has(recordDecl(has(recordDecl(hasName("A"))), in TEST_P()
215 has(recordDecl(hasName("B"))), hasName("C"))), in TEST_P()
216 hasName("F")); in TEST_P()
269 anyOf(has(recordDecl(anyOf(has(recordDecl(hasName("X"))), in TEST_P()
270 has(recordDecl(hasName("Y"))), hasName("Z")))), in TEST_P()
271 has(recordDecl(anyOf(hasName("C"), has(recordDecl(hasName("A"))), in TEST_P()
272 has(recordDecl(hasName("B")))))), in TEST_P()
273 hasName("F"))); in TEST_P()
293 cxxRecordDecl(isDerivedFrom("Y"), unless(hasName("X"))); in TEST_P()
302 recordDecl(hasName("X"), has(recordDecl(hasName("Z"))), in TEST_P()
303 unless(has(recordDecl(hasName("Y"))))); in TEST_P()
309 namedDecl(hasName("Foo"), unless(recordDecl())); in TEST_P()
335 recordDecl(hasDescendant(recordDecl(hasName("X"))), hasName("Z")); in TEST_P()
347 hasDescendant(recordDecl(has(recordDecl(hasName("Y"))), hasName("X"))), in TEST_P()
348 hasName("Z")); in TEST_P()
369 hasDescendant(recordDecl(hasName("Y"))), hasName("X"))), in TEST_P()
370 hasName("Z")); in TEST_P()
394 auto Name = hasName("i"); in TEST_P()
437 anyOf(hasName("Y"), allOf(isDerivedFrom("X"), hasName("Z")))); in TEST_P()
445 recordDecl(anyOf(hasName("X"), hasName("Y"), hasName("Z"), hasName("U"))); in TEST_P()
450 hasName("X"), hasName("Y"), hasName("Z"), hasName("U"), hasName("V"))); in TEST_P()
590 forFunction(functionDecl(hasName("binop"))), in TEST_P()
591 hasLHS(declRefExpr(to(varDecl(hasName("s1"))))), in TEST_P()
592 hasRHS(declRefExpr(to(varDecl(hasName("s2"))))))))); in TEST_P()
599 forFunction(functionDecl(hasName("opMem"))), in TEST_P()
600 hasLHS(declRefExpr(to(varDecl(hasName("s1"))))), in TEST_P()
601 hasRHS(declRefExpr(to(varDecl(hasName("s2"))))))))); in TEST_P()
608 forFunction(functionDecl(hasName("opFree"))), in TEST_P()
609 hasLHS(declRefExpr(to(varDecl(hasName("s1"))))), in TEST_P()
610 hasRHS(declRefExpr(to(varDecl(hasName("s2"))))))))); in TEST_P()
616 forFunction(functionDecl(hasName("binop"))), in TEST_P()
618 declRefExpr(to(varDecl(hasName("s1"))))), in TEST_P()
620 declRefExpr(to(varDecl(hasName("s2"))))))))); in TEST_P()
626 forFunction(functionDecl(hasName("opMem"))), in TEST_P()
628 declRefExpr(to(varDecl(hasName("s1"))))), in TEST_P()
630 declRefExpr(to(varDecl(hasName("s2"))))))))); in TEST_P()
636 forFunction(functionDecl(hasName("opFree"))), in TEST_P()
638 declRefExpr(to(varDecl(hasName("s1"))))), in TEST_P()
640 declRefExpr(to(varDecl(hasName("s2"))))))))); in TEST_P()
648 forFunction(functionDecl(hasName("binop"))), in TEST_P()
649 hasOperands(declRefExpr(to(varDecl(hasName("s1")))), in TEST_P()
650 declRefExpr(to(varDecl(hasName("s2"))))), in TEST_P()
651 hasOperands(declRefExpr(to(varDecl(hasName("s2")))), in TEST_P()
652 declRefExpr(to(varDecl(hasName("s1"))))))))); in TEST_P()
660 forFunction(functionDecl(hasName("opMem"))), in TEST_P()
661 hasOperands(declRefExpr(to(varDecl(hasName("s1")))), in TEST_P()
662 declRefExpr(to(varDecl(hasName("s2"))))), in TEST_P()
663 hasOperands(declRefExpr(to(varDecl(hasName("s2")))), in TEST_P()
664 declRefExpr(to(varDecl(hasName("s1"))))))))); in TEST_P()
672 forFunction(functionDecl(hasName("opFree"))), in TEST_P()
673 hasOperands(declRefExpr(to(varDecl(hasName("s1")))), in TEST_P()
674 declRefExpr(to(varDecl(hasName("s2"))))), in TEST_P()
675 hasOperands(declRefExpr(to(varDecl(hasName("s2")))), in TEST_P()
676 declRefExpr(to(varDecl(hasName("s1"))))))))); in TEST_P()
682 forFunction(functionDecl(hasName("binop"))))))); in TEST_P()
688 forFunction(functionDecl(hasName("opMem"))))))); in TEST_P()
694 forFunction(functionDecl(hasName("opFree"))))))); in TEST_P()
700 forFunction(functionDecl(hasName("binop"))), in TEST_P()
701 hasLHS(declRefExpr(to(varDecl(hasName("s1"))))), in TEST_P()
702 hasRHS(declRefExpr(to(varDecl(hasName("s2"))))))))); in TEST_P()
708 forFunction(functionDecl(hasName("opMem"))), in TEST_P()
709 hasLHS(declRefExpr(to(varDecl(hasName("s1"))))), in TEST_P()
710 hasRHS(declRefExpr(to(varDecl(hasName("s2"))))))))); in TEST_P()
716 forFunction(functionDecl(hasName("opFree"))), in TEST_P()
717 hasLHS(declRefExpr(to(varDecl(hasName("s1"))))), in TEST_P()
718 hasRHS(declRefExpr(to(varDecl(hasName("s2"))))))))); in TEST_P()
724 forFunction(functionDecl(hasName("templ"))), in TEST_P()
725 hasLHS(declRefExpr(to(varDecl(hasName("s1"))))), in TEST_P()
726 hasRHS(declRefExpr(to(varDecl(hasName("s2"))))))))); in TEST_P()
772 forFunction(functionDecl(hasName("inverse"))), in TEST_P()
773 hasLHS(declRefExpr(to(varDecl(hasName("s1"))))), in TEST_P()
774 hasRHS(declRefExpr(to(varDecl(hasName("s2"))))))), in TEST_P()
782 forFunction(functionDecl(hasName("rewritten"))), in TEST_P()
783 hasLHS(declRefExpr(to(varDecl(hasName("s1"))))), in TEST_P()
784 hasRHS(declRefExpr(to(varDecl(hasName("s2"))))))), in TEST_P()
829 forFunction(functionDecl(hasName("unop"))), in TEST_P()
831 declRefExpr(to(varDecl(hasName("s1"))))))))); in TEST_P()
837 forFunction(functionDecl(hasName("opMem"))), in TEST_P()
839 declRefExpr(to(varDecl(hasName("s1"))))))))); in TEST_P()
845 forFunction(functionDecl(hasName("opFree"))), in TEST_P()
847 declRefExpr(to(varDecl(hasName("s1"))))))))); in TEST_P()
853 forFunction(functionDecl(hasName("unop"))))))); in TEST_P()
859 forFunction(functionDecl(hasName("opMem"))))))); in TEST_P()
865 forFunction(functionDecl(hasName("opFree"))))))); in TEST_P()
891 invocation(forFunction(functionDecl(hasName("doCall"))), in TEST_P()
896 parmVarDecl(hasName("i"))))))); in TEST_P()
902 invocation(forFunction(functionDecl(hasName("doConstruct"))), in TEST_P()
906 parmVarDecl(hasName("i"))))))); in TEST_P()
927 cxxRecordDecl(hasName("Z"), isDerivedFrom("X")); in TEST_P()
953 cxxRecordDecl(hasName("Z"), isDerivedFrom("X")); in TEST_P()
955 cxxRecordDecl(hasName("Z"), isDirectlyDerivedFrom("X")); in TEST_P()
1077 cxxRecordDecl(isDerivedFrom(recordDecl(hasName("Some")))))); in TEST_P()
1084 cxxRecordDecl(hasName("B"), isDerivedFrom(recordDecl(hasName("A")))))); in TEST_P()
1091 cxxRecordDecl(hasName("B"), in TEST_P()
1092 isDirectlyDerivedFrom(recordDecl(hasName("A")))))); in TEST_P()
1108 varDecl(hasName("z_float"), in TEST_P()
1112 varDecl(hasName("z_float"), in TEST_P()
1116 varDecl(hasName("z_char"), in TEST_P()
1133 varDecl(hasName("z_float"), in TEST_P()
1137 varDecl(hasName("z_float"), in TEST_P()
1141 varDecl(hasName("z_char"), in TEST_P()
1151 cxxRecordDecl(isDerivedFrom(recordDecl(hasName("X")).bind("test"))))); in TEST_P()
1156 cxxRecordDecl(isDerivedFrom(namedDecl(hasName("X")))))); in TEST_P()
1218 objcInterfaceDecl(hasName("Z"), isDerivedFrom("X")); in TEST_P()
1220 objcInterfaceDecl(hasName("Z"), isDirectlyDerivedFrom("X")); in TEST_P()
1292 DeclarationMatcher ClassX = has(recordDecl(hasName("::X")).bind("x")); in TEST_P()
1303 recordDecl(hasName("A"), has(recordDecl(hasName("B")).bind("b")))); in TEST_P()
1310 callExpr(callee(cxxMethodDecl(hasName("x")))).bind("x"); in TEST_P()
1334 DeclarationMatcher ClassX = recordDecl(hasName("X")).bind("x"); in TEST_P()
1338 anyOf(recordDecl(hasName("A"), hasDescendant(ClassX)), in TEST_P()
1339 recordDecl(hasName("B"), hasDescendant(ClassX)))), in TEST_P()
1421 auto M = varDecl(hasName("X"), hasLocalStorage()); in TEST_P()
1428 auto M = varDecl(hasName("X"), hasGlobalStorage()); in TEST_P()
1446 EXPECT_TRUE(matches(T, varDecl(hasName("x"), hasAutomaticStorageDuration()))); in TEST_P()
1448 notMatches(T, varDecl(hasName("y"), hasAutomaticStorageDuration()))); in TEST_P()
1450 notMatches(T, varDecl(hasName("a"), hasAutomaticStorageDuration()))); in TEST_P()
1452 EXPECT_TRUE(matches(T, varDecl(hasName("y"), hasStaticStorageDuration()))); in TEST_P()
1453 EXPECT_TRUE(matches(T, varDecl(hasName("a"), hasStaticStorageDuration()))); in TEST_P()
1454 EXPECT_TRUE(matches(T, varDecl(hasName("b"), hasStaticStorageDuration()))); in TEST_P()
1455 EXPECT_TRUE(matches(T, varDecl(hasName("c"), hasStaticStorageDuration()))); in TEST_P()
1456 EXPECT_TRUE(notMatches(T, varDecl(hasName("x"), hasStaticStorageDuration()))); in TEST_P()
1459 EXPECT_TRUE(notMatches(T, varDecl(hasName("x"), hasThreadStorageDuration()))); in TEST_P()
1460 EXPECT_TRUE(notMatches(T, varDecl(hasName("y"), hasThreadStorageDuration()))); in TEST_P()
1461 EXPECT_TRUE(notMatches(T, varDecl(hasName("a"), hasThreadStorageDuration()))); in TEST_P()
1465 EXPECT_TRUE(matches("void f(int i) {}", varDecl(hasName("i")))); in TEST_P()
1475 sizeOfExpr(hasArgumentOfType(hasDeclaration(recordDecl(hasName("A"))))))); in TEST_P()
1478 hasDeclaration(recordDecl(hasName("string"))))))); in TEST_P()
1668 varDecl(hasType(references(recordDecl(hasName("X"))))); in TEST_P()
1732 functionDecl(hasName("~A"), isDefaulted()))); in TEST_P()
1734 functionDecl(hasName("~B"), isDefaulted()))); in TEST_P()
1743 notMatches("void Func();", functionDecl(hasName("Func"), isDeleted()))); in TEST_P()
1745 functionDecl(hasName("Func"), isDeleted()))); in TEST_P()
1783 varDecl(hasName("foo"), isConstexpr()))); in TEST_P()
1785 functionDecl(hasName("bar"), isConstexpr()))); in TEST_P()
1930 cxxMethodDecl(isVirtual(), hasName("::X::f")))); in TEST_P()
1941 cxxMethodDecl(isVirtualAsWritten(), hasName("::A::f")))); in TEST_P()
1945 cxxMethodDecl(isVirtualAsWritten(), hasName("::B::f")))); in TEST_P()
1954 cxxMethodDecl(isPure(), hasName("::X::f")))); in TEST_P()
2011 cxxMethodDecl(isOverride(), hasName("::Y::f")))); in TEST_P()
2014 cxxMethodDecl(isOverride(), hasName("::X::f")))); in TEST_P()
2022 cxxMethodDecl(isOverride(), hasName("::Y::f")))); in TEST_P()
2032 cxxConstructExpr(hasArgument(0, declRefExpr(to(varDecl(hasName("y"))))))); in TEST_P()
2047 42, declRefExpr(to(varDecl(hasName("y"))))))); in TEST_P()
2083 has(cxxMethodDecl(hasName("mem")).bind("templMem")))))))))), in TEST()
2103 has(fieldDecl(hasName("mem")).bind("templMem")))))))))), in TEST()
2120 has(varDecl(hasName("mem")).bind("templMem")))))))))), in TEST()
2149 translationUnitDecl(has(cxxRecordDecl(hasName("mem"))), in TEST()
2154 translationUnitDecl(has(cxxRecordDecl(hasName("mem")).bind("templMem")), in TEST()
2174 0, declRefExpr(to(varDecl(hasName("y")))))))); in TEST()
2177 0, declRefExpr(to(varDecl(hasName("x")))))))); in TEST()
2209 cxxMethodDecl(isImplicit(), hasName("operator=")))); in TEST_P()
2362 recordDecl(hasName("a::b::C")))); in TEST_P()
2364 recordDecl(hasName("::a::b::C")))); in TEST_P()
2366 recordDecl(hasName("b::C")))); in TEST_P()
2368 recordDecl(hasName("C")))); in TEST_P()
2370 recordDecl(hasName("c::b::C")))); in TEST_P()
2372 recordDecl(hasName("a::c::C")))); in TEST_P()
2374 recordDecl(hasName("a::b::A")))); in TEST_P()
2376 recordDecl(hasName("::C")))); in TEST_P()
2378 recordDecl(hasName("::b::C")))); in TEST_P()
2380 recordDecl(hasName("z::a::b::C")))); in TEST_P()
2382 recordDecl(hasName("a+b::C")))); in TEST_P()
2384 recordDecl(hasName("C")))); in TEST_P()
2393 recordDecl(hasName("A::B::C")))); in TEST_P()
2395 recordDecl(hasName("::A::B::C")))); in TEST_P()
2397 recordDecl(hasName("B::C")))); in TEST_P()
2399 matches("class A { class B { class C; }; };", recordDecl(hasName("C")))); in TEST_P()
2401 recordDecl(hasName("c::B::C")))); in TEST_P()
2403 recordDecl(hasName("A::c::C")))); in TEST_P()
2405 recordDecl(hasName("A::B::A")))); in TEST_P()
2407 recordDecl(hasName("::C")))); in TEST_P()
2409 recordDecl(hasName("::B::C")))); in TEST_P()
2411 recordDecl(hasName("z::A::B::C")))); in TEST_P()
2413 recordDecl(hasName("A+B::C")))); in TEST_P()
2422 EXPECT_TRUE(matches(code, recordDecl(hasName("a::b::C")))); in TEST_P()
2423 EXPECT_TRUE(matches(code, recordDecl(hasName("a::C")))); in TEST_P()
2424 EXPECT_TRUE(matches(code, recordDecl(hasName("::a::b::C")))); in TEST_P()
2425 EXPECT_TRUE(matches(code, recordDecl(hasName("::a::C")))); in TEST_P()
2435 matches(code, recordDecl(hasName("a::(anonymous namespace)::C")))); in TEST_P()
2436 EXPECT_TRUE(matches(code, recordDecl(hasName("a::C")))); in TEST_P()
2438 matches(code, recordDecl(hasName("::a::(anonymous namespace)::C")))); in TEST_P()
2439 EXPECT_TRUE(matches(code, recordDecl(hasName("::a::C")))); in TEST_P()
2448 recordDecl(hasName("A::(anonymous class)::C")))); in TEST_P()
2450 recordDecl(hasName("::A::(anonymous class)::C")))); in TEST_P()
2452 recordDecl(hasName("::A::C")))); in TEST_P()
2454 recordDecl(hasName("A::(anonymous struct)::C")))); in TEST_P()
2456 recordDecl(hasName("::A::(anonymous struct)::C")))); in TEST_P()
2458 recordDecl(hasName("::A::C")))); in TEST_P()
2468 EXPECT_TRUE(matches(code, varDecl(hasName("i")))); in TEST_P()
2469 EXPECT_FALSE(matches(code, varDecl(hasName("F()::i")))); in TEST_P()
2471 EXPECT_TRUE(matches(code, fieldDecl(hasName("m")))); in TEST_P()
2472 EXPECT_TRUE(matches(code, fieldDecl(hasName("S::m")))); in TEST_P()
2473 EXPECT_TRUE(matches(code, fieldDecl(hasName("F(int)::S::m")))); in TEST_P()
2474 EXPECT_TRUE(matches(code, fieldDecl(hasName("a::F(int)::S::m")))); in TEST_P()
2475 EXPECT_TRUE(matches(code, fieldDecl(hasName("::a::F(int)::S::m")))); in TEST_P()
2485 EXPECT_TRUE(matches(code, functionDecl(hasName("test")))); in TEST_P()
2486 EXPECT_TRUE(matches(code, functionDecl(hasName("foo::test")))); in TEST_P()
2487 EXPECT_TRUE(matches(code, functionDecl(hasName("::foo::test")))); in TEST_P()
2488 EXPECT_TRUE(notMatches(code, functionDecl(hasName("::test")))); in TEST_P()
2491 EXPECT_TRUE(matches(code, functionDecl(hasName("test")))); in TEST_P()
2492 EXPECT_TRUE(matches(code, functionDecl(hasName("foo::test")))); in TEST_P()
2493 EXPECT_TRUE(matches(code, functionDecl(hasName("::foo::test")))); in TEST_P()
2494 EXPECT_TRUE(notMatches(code, functionDecl(hasName("::test")))); in TEST_P()
2520 recordDecl(hasName("A"), isDefinition()); in TEST_P()
2525 varDecl(hasName("a"), isDefinition()); in TEST_P()
2536 cxxMethodDecl(hasName("a"), isDefinition()); in TEST_P()
2541 objcMethodDecl(hasName("a"), isDefinition()); in TEST_P()
2582 ObjCString, objcIvarRefExpr(hasDeclaration(namedDecl(hasName("x")))))); in TEST_P()
2584 ObjCString, objcIvarRefExpr(hasDeclaration(namedDecl(hasName("y")))))); in TEST_P()
2625 memberExpr(member(hasName("first"))))); in TEST_P()
2637 memberExpr(member(hasName("first"))))); in TEST_P()
2649 memberExpr(member(hasName("first"))))); in TEST_P()
2663 fieldDecl(isBitField(), hasName("a")))); in TEST_P()
2665 fieldDecl(isBitField(), hasName("b")))); in TEST_P()
2667 fieldDecl(isBitField(), hasBitWidth(2), hasName("a")))); in TEST_P()
2678 hasName("a")))); in TEST_P()
2681 fieldDecl(hasInClassInitializer(anything()), hasName("b")))); in TEST_P()
2690 matches("struct A { int i; };", fieldDecl(isPublic(), hasName("i")))); in TEST_P()
2692 fieldDecl(isProtected(), hasName("i")))); in TEST_P()
2694 notMatches("struct A { int i; };", fieldDecl(isPrivate(), hasName("i")))); in TEST_P()
2697 notMatches("class A { int i; };", fieldDecl(isPublic(), hasName("i")))); in TEST_P()
2699 fieldDecl(isProtected(), hasName("i")))); in TEST_P()
2701 matches("class A { int i; };", fieldDecl(isPrivate(), hasName("i")))); in TEST_P()
2704 fieldDecl(isPublic(), hasName("i")))); in TEST_P()
2706 fieldDecl(isProtected(), hasName("i")))); in TEST_P()
2708 fieldDecl(isPrivate(), hasName("i")))); in TEST_P()
2711 EXPECT_TRUE(notMatches("int i;", varDecl(isPublic(), hasName("i")))); in TEST_P()
2712 EXPECT_TRUE(notMatches("int i;", varDecl(isProtected(), hasName("i")))); in TEST_P()
2713 EXPECT_TRUE(notMatches("int i;", varDecl(isPrivate(), hasName("i")))); in TEST_P()
2768 memberExpr(hasObjectExpression(hasType(recordDecl(hasName("X"))))))); in TEST_P()
2774 memberExpr(hasObjectExpression(hasType(recordDecl(hasName("X"))))))); in TEST_P()
2777 hasType(pointsTo(recordDecl(hasName("X")))))))); in TEST_P()
2788 declRefExpr(to(namedDecl(hasName("t")))))))); in TEST_P()
2792 declRefExpr(to(namedDecl(hasName("t")))))))); in TEST_P()
2802 memberExpr(hasObjectExpression(hasType(recordDecl(hasName("X"))))))); in TEST_P()
2814 hasType(recordDecl(hasName("X"))))))); in TEST_P()
2817 declRefExpr(to(namedDecl(hasName("t")))))))); in TEST_P()
2827 hasType(pointsTo(recordDecl(hasName("S")))))))); in TEST_P()
2830 hasType(pointsTo(recordDecl(hasName("S")))))))); in TEST_P()
2838 EXPECT_TRUE(notMatches("class X { void m(); };", fieldDecl(hasName("m")))); in TEST_P()
2839 EXPECT_TRUE(notMatches("class X { class m {}; };", fieldDecl(hasName("m")))); in TEST_P()
2840 EXPECT_TRUE(notMatches("class X { enum { m }; };", fieldDecl(hasName("m")))); in TEST_P()
2841 EXPECT_TRUE(notMatches("class X { enum m {}; };", fieldDecl(hasName("m")))); in TEST_P()
2845 EXPECT_TRUE(matches("struct X { int m; };", fieldDecl(hasName("m")))); in TEST_P()
2892 recordDecl(eachOf(has(fieldDecl(hasName("a")).bind("v")), in TEST_P()
2893 has(fieldDecl(hasName("b")).bind("v")))), in TEST_P()
2900 recordDecl(eachOf(has(fieldDecl(hasName("a")).bind("v")), in TEST_P()
2901 has(fieldDecl(hasName("b")).bind("v")))), in TEST_P()
2905 recordDecl(eachOf(has(fieldDecl(hasName("a")).bind("v")), in TEST_P()
2906 has(fieldDecl(hasName("b")).bind("v")))), in TEST_P()
2910 recordDecl(eachOf(has(fieldDecl(hasName("a")).bind("v")), in TEST_P()
2911 has(fieldDecl(hasName("b")).bind("v")))))); in TEST_P()
2917 recordDecl(optionally(has(fieldDecl(hasName("c")).bind("c")))), in TEST_P()
2925 optionally(has(fieldDecl(hasName("c")).bind("v")))); in TEST_P()
2937 recordDecl(optionally(has(fieldDecl(hasName("a")).bind("v")))), in TEST_P()
2952 cxxRecordDecl(hasName("::X"), isTemplateInstantiation()))); in TEST_P()
2958 hasDescendant(fieldDecl(hasType(recordDecl(hasName("A")))))))); in TEST_P()
2969 functionDecl(hasParameter(0, hasType(recordDecl(hasName("A")))), in TEST_P()
2983 hasType(recordDecl(hasName("A")))))))); in TEST_P()
2991 unless(hasDescendant(varDecl(hasName("t"))))))); in TEST_P()
3004 cxxRecordDecl(hasName("::X"), isTemplateInstantiation()))); in TEST_P()
3020 cxxRecordDecl(hasName("::X::Y"), isTemplateInstantiation()))); in TEST_P()
3039 cxxRecordDecl(hasName("::X<A>::Y"), unless(isTemplateInstantiation())))); in TEST_P()
3052 cxxRecordDecl(hasName("::X"), isTemplateInstantiation()))); in TEST_P()
3479 cxxRecordDecl(hasName("vector"), isInStdNamespace()))); in TEST_P()
3484 cxxRecordDecl(hasName("vector"), isInStdNamespace()))); in TEST_P()
3497 cxxRecordDecl(hasName("vector"), isInStdNamespace()))); in TEST_P()
3509 cxxRecordDecl(hasName("path"), isInStdNamespace()))); in TEST_P()
3522 cxxRecordDecl(hasName("path"), in TEST_P()
3523 hasAncestor(namespaceDecl(hasName("filesystem"), in TEST_P()
3540 "int i = 1;", varDecl(namedDecl(hasName("i")).bind("name"), in TEST_P()
3565 decl(allOf(recordDecl(hasName("::X::Y")).bind("record"), in TEST_P()
3569 decl(allOf(recordDecl(hasName("::X")).bind("record"), in TEST_P()
3582 has(fieldDecl(hasName("a"), hasType(type().bind("t")))), in TEST_P()
3583 has(fieldDecl(hasName("b"), hasType(type(equalsBoundNode("t")))))))); in TEST_P()
3588 has(fieldDecl(hasName("a"), hasType(type().bind("t")))), in TEST_P()
3589 has(fieldDecl(hasName("b"), hasType(type(equalsBoundNode("t")))))))); in TEST_P()
3622 hasName("f"), forEachDescendant(varDecl().bind("d")), in TEST_P()
3635 callee(cxxMethodDecl(hasName("data"))), in TEST_P()
3637 varDecl(hasType(recordDecl(hasName("StringRef")))).bind("var")))), in TEST_P()
3639 callee(cxxMethodDecl(anyOf(hasName("size"), hasName("length")))), in TEST_P()
3651 callee(cxxMethodDecl(hasName("data"))), in TEST_P()
3653 varDecl(hasType(recordDecl(hasName("StringRef")))).bind("var")))), in TEST_P()
3655 callee(cxxMethodDecl(anyOf(hasName("size"), hasName("length")))), in TEST_P()
3703 namedDecl(hasName("a"), hasExternalFormalLinkage()))); in TEST_P()
3705 namedDecl(hasName("a"), hasExternalFormalLinkage()))); in TEST_P()
3707 namedDecl(hasName("a"), hasExternalFormalLinkage()))); in TEST_P()
3709 namedDecl(hasName("a"), hasExternalFormalLinkage()))); in TEST_P()
3718 namedDecl(hasName("a"), hasExternalFormalLinkage()))); in TEST_P()
4227 cxxRecordDecl(hasName("ExpectedMatch"), in TEST_P()
4228 hasAnyBase(hasType(cxxRecordDecl(hasName("Base"))))))); in TEST_P()
4239 cxxRecordDecl(hasName("ExpectedMatch"), in TEST_P()
4240 hasAnyBase(hasType(cxxRecordDecl(hasName("Base"))))))); in TEST_P()
4386 cxxRecordDecl(hasName("Derived"), hasAnyBase(isVirtual())))); in TEST_P()
4415 cxxRecordDecl(hasName("Derived"), in TEST_P()
4416 hasDirectBase(hasType(cxxRecordDecl(hasName("Base"))))))); in TEST_P()
4426 cxxRecordDecl(hasName("Derived"), in TEST_P()
4427 hasDirectBase(hasType(cxxRecordDecl(hasName("Base"))))))); in TEST_P()
4430 cxxRecordDecl(hasName("Derived"), in TEST_P()
4431 hasDirectBase(hasType(cxxRecordDecl(hasName("Base2"))))))); in TEST_P()
4440 matches(Indirect, cxxRecordDecl(hasName("Derived"), in TEST_P()
4442 hasName("Intermediate"))))))); in TEST_P()
4445 cxxRecordDecl(hasName("Derived"), in TEST_P()
4446 hasDirectBase(hasType(cxxRecordDecl(hasName("Base"))))))); in TEST_P()