Lines Matching refs:hasName

29       callExpr(allOf(callee(functionDecl(hasName("f"))),  in TEST()
32 callExpr(allOf(callee(functionDecl(hasName("f"))), in TEST()
35 recordDecl(hasName("T"))))))))); in TEST()
37 callExpr(allOf(callee(functionDecl(hasName("f"))), in TEST()
40 recordDecl(hasName("T"))))), in TEST()
43 callExpr(allOf(callee(functionDecl(hasName("f"))), in TEST()
46 recordDecl(hasName("T"))))), in TEST()
52 DeclarationMatcher HasClassX = recordDecl(has(recordDecl(hasName("X")))); in TEST()
57 recordDecl(hasName("Y"), has(recordDecl(hasName("X")))); in TEST()
68 has(recordDecl(hasName("X"))), in TEST()
69 has(recordDecl(hasName("Y"))), in TEST()
70 hasName("Z"))), in TEST()
72 has(recordDecl(hasName("A"))), in TEST()
73 has(recordDecl(hasName("B"))), in TEST()
74 hasName("C"))), in TEST()
75 hasName("F")); in TEST()
129 hasName("X"))), in TEST()
131 hasName("Y"))), in TEST()
132 hasName("Z")))), in TEST()
135 hasName("C"), in TEST()
137 hasName("A"))), in TEST()
139 hasName("B")))))), in TEST()
140 hasName("F"))); in TEST()
157 unless(hasName("X"))); in TEST()
168 hasName("X"), in TEST()
169 has(recordDecl(hasName("Z"))), in TEST()
171 has(recordDecl(hasName("Y"))))); in TEST()
177 namedDecl(hasName("Foo"), unless(recordDecl())); in TEST()
194 hasDescendant(recordDecl(hasName("X"))), in TEST()
195 hasName("Z")); in TEST()
209 hasDescendant(recordDecl(has(recordDecl(hasName("Y"))), in TEST()
210 hasName("X"))), in TEST()
211 hasName("Z")); in TEST()
232 hasDescendant(recordDecl(hasDescendant(recordDecl(hasName("Y"))), in TEST()
233 hasName("X"))), in TEST()
234 hasName("Z")); in TEST()
258 auto Name = hasName("i"); in TEST()
294 anyOf(hasName("Y"), allOf(isDerivedFrom("X"), hasName("Z")))); in TEST()
302 recordDecl(anyOf(hasName("X"), hasName("Y"), hasName("Z"), hasName("U"))); in TEST()
307 recordDecl(anyOf(hasName("X"), hasName("Y"), hasName("Z"), hasName("U"), in TEST()
308 hasName("V"))); in TEST()
344 cxxRecordDecl(hasName("Z"), isDerivedFrom("X")); in TEST()
463 cxxRecordDecl(isDerivedFrom(recordDecl(hasName("Some")))))); in TEST()
470 cxxRecordDecl(hasName("B"), isDerivedFrom(recordDecl(hasName("A")))))); in TEST()
486 varDecl(hasName("z_float"), in TEST()
490 varDecl(hasName("z_float"), in TEST()
494 varDecl(hasName("z_char"), in TEST()
511 varDecl(hasName("z_float"), in TEST()
515 varDecl(hasName("z_float"), in TEST()
519 varDecl(hasName("z_char"), in TEST()
531 cxxRecordDecl(isDerivedFrom(recordDecl(hasName("X")).bind("test"))))); in TEST()
537 cxxRecordDecl(isDerivedFrom(namedDecl(hasName("X")))))); in TEST()
547 DeclarationMatcher ClassX = has(recordDecl(hasName("::X")).bind("x")); in TEST()
556 recordDecl(hasName("A"), has(recordDecl(hasName("B")).bind("b")))); in TEST()
563 callExpr(callee(cxxMethodDecl(hasName("x")))).bind("x"); in TEST()
590 DeclarationMatcher ClassX = recordDecl(hasName("X")).bind("x"); in TEST()
594 recordDecl(hasName("A"), hasDescendant(ClassX)), in TEST()
595 recordDecl(hasName("B"), hasDescendant(ClassX)))), in TEST()
659 auto M = varDecl(hasName("X"), hasLocalStorage()); in TEST()
664 M = varDecl(hasName("X"), hasGlobalStorage()); in TEST()
674 EXPECT_TRUE(matches(T, varDecl(hasName("x"), hasAutomaticStorageDuration()))); in TEST()
676 notMatches(T, varDecl(hasName("y"), hasAutomaticStorageDuration()))); in TEST()
678 notMatches(T, varDecl(hasName("a"), hasAutomaticStorageDuration()))); in TEST()
680 EXPECT_TRUE(matches(T, varDecl(hasName("y"), hasStaticStorageDuration()))); in TEST()
681 EXPECT_TRUE(matches(T, varDecl(hasName("a"), hasStaticStorageDuration()))); in TEST()
682 EXPECT_TRUE(notMatches(T, varDecl(hasName("x"), hasStaticStorageDuration()))); in TEST()
688 EXPECT_TRUE(notMatches(T, varDecl(hasName("x"), hasThreadStorageDuration()))); in TEST()
689 EXPECT_TRUE(notMatches(T, varDecl(hasName("y"), hasThreadStorageDuration()))); in TEST()
690 EXPECT_TRUE(notMatches(T, varDecl(hasName("a"), hasThreadStorageDuration()))); in TEST()
696 varDecl(hasName("i")))); in TEST()
706 sizeOfExpr(hasArgumentOfType(hasDeclaration(recordDecl(hasName("A"))))))); in TEST()
708 hasArgumentOfType(hasDeclaration(recordDecl(hasName("string"))))))); in TEST()
812 hasType(references(recordDecl(hasName("X"))))); in TEST()
847 functionDecl(hasName("~A"), isDefaulted()))); in TEST()
849 functionDecl(hasName("~B"), isDefaulted()))); in TEST()
854 notMatches("void Func();", functionDecl(hasName("Func"), isDeleted()))); in TEST()
856 functionDecl(hasName("Func"), isDeleted()))); in TEST()
877 varDecl(hasName("foo"), isConstexpr()))); in TEST()
879 functionDecl(hasName("bar"), isConstexpr()))); in TEST()
944 cxxMethodDecl(isVirtual(), hasName("::X::f")))); in TEST()
951 cxxMethodDecl(isVirtualAsWritten(), hasName("::A::f")))); in TEST()
955 cxxMethodDecl(isVirtualAsWritten(), hasName("::B::f")))); in TEST()
960 cxxMethodDecl(isPure(), hasName("::X::f")))); in TEST()
1004 cxxMethodDecl(isOverride(), hasName("::Y::f")))); in TEST()
1007 cxxMethodDecl(isOverride(), hasName("::X::f")))); in TEST()
1015 cxxMethodDecl(isOverride(), hasName("::Y::f")))); in TEST()
1020 hasArgument(0, declRefExpr(to(varDecl(hasName("y")))))); in TEST()
1036 hasArgument(42, declRefExpr(to(varDecl(hasName("y")))))); in TEST()
1083 cxxMethodDecl(isImplicit(), hasName("operator=")))); in TEST()
1155 recordDecl(hasName("a::b::C")))); in TEST()
1157 recordDecl(hasName("::a::b::C")))); in TEST()
1159 recordDecl(hasName("b::C")))); in TEST()
1161 recordDecl(hasName("C")))); in TEST()
1163 recordDecl(hasName("c::b::C")))); in TEST()
1165 recordDecl(hasName("a::c::C")))); in TEST()
1167 recordDecl(hasName("a::b::A")))); in TEST()
1169 recordDecl(hasName("::C")))); in TEST()
1171 recordDecl(hasName("::b::C")))); in TEST()
1173 recordDecl(hasName("z::a::b::C")))); in TEST()
1175 recordDecl(hasName("a+b::C")))); in TEST()
1177 recordDecl(hasName("C")))); in TEST()
1183 recordDecl(hasName("A::B::C")))); in TEST()
1186 recordDecl(hasName("::A::B::C")))); in TEST()
1189 recordDecl(hasName("B::C")))); in TEST()
1192 recordDecl(hasName("C")))); in TEST()
1195 recordDecl(hasName("c::B::C")))); in TEST()
1198 recordDecl(hasName("A::c::C")))); in TEST()
1201 recordDecl(hasName("A::B::A")))); in TEST()
1204 recordDecl(hasName("::C")))); in TEST()
1207 recordDecl(hasName("::B::C")))); in TEST()
1209 recordDecl(hasName("z::A::B::C")))); in TEST()
1212 recordDecl(hasName("A+B::C")))); in TEST()
1217 EXPECT_TRUE(matches(code, recordDecl(hasName("a::b::C")))); in TEST()
1218 EXPECT_TRUE(matches(code, recordDecl(hasName("a::C")))); in TEST()
1219 EXPECT_TRUE(matches(code, recordDecl(hasName("::a::b::C")))); in TEST()
1220 EXPECT_TRUE(matches(code, recordDecl(hasName("::a::C")))); in TEST()
1226 matches(code, recordDecl(hasName("a::(anonymous namespace)::C")))); in TEST()
1227 EXPECT_TRUE(matches(code, recordDecl(hasName("a::C")))); in TEST()
1229 matches(code, recordDecl(hasName("::a::(anonymous namespace)::C")))); in TEST()
1230 EXPECT_TRUE(matches(code, recordDecl(hasName("::a::C")))); in TEST()
1235 recordDecl(hasName("A::(anonymous class)::C")))); in TEST()
1237 recordDecl(hasName("::A::(anonymous class)::C")))); in TEST()
1239 recordDecl(hasName("::A::C")))); in TEST()
1241 recordDecl(hasName("A::(anonymous struct)::C")))); in TEST()
1243 recordDecl(hasName("::A::(anonymous struct)::C")))); in TEST()
1245 recordDecl(hasName("::A::C")))); in TEST()
1251 EXPECT_TRUE(matches(code, varDecl(hasName("i")))); in TEST()
1252 EXPECT_FALSE(matches(code, varDecl(hasName("F()::i")))); in TEST()
1254 EXPECT_TRUE(matches(code, fieldDecl(hasName("m")))); in TEST()
1255 EXPECT_TRUE(matches(code, fieldDecl(hasName("S::m")))); in TEST()
1256 EXPECT_TRUE(matches(code, fieldDecl(hasName("F(int)::S::m")))); in TEST()
1257 EXPECT_TRUE(matches(code, fieldDecl(hasName("a::F(int)::S::m")))); in TEST()
1258 EXPECT_TRUE(matches(code, fieldDecl(hasName("::a::F(int)::S::m")))); in TEST()
1279 recordDecl(hasName("A"), isDefinition()); in TEST()
1284 varDecl(hasName("a"), isDefinition()); in TEST()
1289 cxxMethodDecl(hasName("a"), isDefinition()); in TEST()
1354 memberExpr(member(hasName("first"))))); in TEST()
1361 memberExpr(member(hasName("first"))))); in TEST()
1369 memberExpr(member(hasName("first"))))); in TEST()
1383 fieldDecl(isBitField(), hasName("a")))); in TEST()
1385 fieldDecl(isBitField(), hasName("b")))); in TEST()
1387 fieldDecl(isBitField(), hasBitWidth(2), hasName("a")))); in TEST()
1392 "struct A { int i; };", fieldDecl(isPublic(), hasName("i")))); in TEST()
1394 "struct A { int i; };", fieldDecl(isProtected(), hasName("i")))); in TEST()
1396 "struct A { int i; };", fieldDecl(isPrivate(), hasName("i")))); in TEST()
1399 "class A { int i; };", fieldDecl(isPublic(), hasName("i")))); in TEST()
1401 "class A { int i; };", fieldDecl(isProtected(), hasName("i")))); in TEST()
1403 "class A { int i; };", fieldDecl(isPrivate(), hasName("i")))); in TEST()
1406 "class A { protected: int i; };", fieldDecl(isPublic(), hasName("i")))); in TEST()
1408 fieldDecl(isProtected(), hasName("i")))); in TEST()
1410 "class A { protected: int i; };", fieldDecl(isPrivate(), hasName("i")))); in TEST()
1413 EXPECT_TRUE(notMatches("int i;", varDecl(isPublic(), hasName("i")))); in TEST()
1414 EXPECT_TRUE(notMatches("int i;", varDecl(isProtected(), hasName("i")))); in TEST()
1415 EXPECT_TRUE(notMatches("int i;", varDecl(isPrivate(), hasName("i")))); in TEST()
1451 memberExpr(hasObjectExpression(hasType(recordDecl(hasName("X"))))))); in TEST()
1457 memberExpr(hasObjectExpression(hasType(recordDecl(hasName("X"))))))); in TEST()
1461 hasType(pointsTo(recordDecl(hasName("X")))))))); in TEST()
1469 hasType(pointsTo(recordDecl(hasName("S")))))))); in TEST()
1473 hasType(pointsTo(recordDecl(hasName("S")))))))); in TEST()
1477 EXPECT_TRUE(notMatches("class X { void m(); };", fieldDecl(hasName("m")))); in TEST()
1478 EXPECT_TRUE(notMatches("class X { class m {}; };", fieldDecl(hasName("m")))); in TEST()
1479 EXPECT_TRUE(notMatches("class X { enum { m }; };", fieldDecl(hasName("m")))); in TEST()
1480 EXPECT_TRUE(notMatches("class X { enum m {}; };", fieldDecl(hasName("m")))); in TEST()
1484 EXPECT_TRUE(matches("class X { int m; };", fieldDecl(hasName("m")))); in TEST()
1533 recordDecl(eachOf(has(fieldDecl(hasName("a")).bind("v")), in TEST()
1534 has(fieldDecl(hasName("b")).bind("v")))), in TEST()
1541 recordDecl(eachOf(has(fieldDecl(hasName("a")).bind("v")), in TEST()
1542 has(fieldDecl(hasName("b")).bind("v")))), in TEST()
1546 recordDecl(eachOf(has(fieldDecl(hasName("a")).bind("v")), in TEST()
1547 has(fieldDecl(hasName("b")).bind("v")))), in TEST()
1551 recordDecl(eachOf(has(fieldDecl(hasName("a")).bind("v")), in TEST()
1552 has(fieldDecl(hasName("b")).bind("v")))))); in TEST()
1561 cxxRecordDecl(hasName("::X"), isTemplateInstantiation()))); in TEST()
1566 fieldDecl(hasType(recordDecl(hasName("A")))))))); in TEST()
1572 functionDecl(hasParameter(0, hasType(recordDecl(hasName("A")))), in TEST()
1581 fieldDecl(hasType(recordDecl(hasName("A")))))))); in TEST()
1589 cxxRecordDecl(hasName("::X"), isTemplateInstantiation()))); in TEST()
1600 cxxRecordDecl(hasName("::X::Y"), isTemplateInstantiation()))); in TEST()
1613 cxxRecordDecl(hasName("::X<A>::Y"), unless(isTemplateInstantiation())))); in TEST()
1620 cxxRecordDecl(hasName("::X"), isTemplateInstantiation()))); in TEST()
1817 "int i = 1;", varDecl(namedDecl(hasName("i")).bind("name"), in TEST()
1836 decl(allOf(recordDecl(hasName("::X::Y")).bind("record"), in TEST()
1840 decl(allOf(recordDecl(hasName("::X")).bind("record"), in TEST()
1848 has(fieldDecl(hasName("a"), hasType(type().bind("t")))), in TEST()
1849 has(fieldDecl(hasName("b"), hasType(type(equalsBoundNode("t")))))))); in TEST()
1854 has(fieldDecl(hasName("a"), hasType(type().bind("t")))), in TEST()
1855 has(fieldDecl(hasName("b"), hasType(type(equalsBoundNode("t")))))))); in TEST()
1887 hasName("f"), forEachDescendant(varDecl().bind("d")), in TEST()
1899 callee(cxxMethodDecl(hasName("data"))), in TEST()
1901 varDecl(hasType(recordDecl(hasName("StringRef")))).bind("var")))), in TEST()
1903 callee(cxxMethodDecl(anyOf(hasName("size"), hasName("length")))), in TEST()
1915 callee(cxxMethodDecl(hasName("data"))), in TEST()
1917 varDecl(hasType(recordDecl(hasName("StringRef")))).bind("var")))), in TEST()
1919 callee(cxxMethodDecl(anyOf(hasName("size"), hasName("length")))), in TEST()