Lines Matching refs:hasName
24 cxxRecordDecl(hasMethod(hasName("func"))))); in TEST()
36 cxxRecordDecl(hasName("B"), isDerivedFrom(recordDecl())))); in TEST()
46 recordDecl(hasDeclContext(namespaceDecl(hasName("M")))))); in TEST()
53 recordDecl(hasDeclContext(namespaceDecl(hasName("N")))))); in TEST()
61 hasName("M"), hasDeclContext(namespaceDecl())))))); in TEST()
105 varDecl(hasName("i"), has(isInteger())))); in TEST()
107 varDecl(hasName("i"), has(isInteger())))); in TEST()
117 varDecl(hasName("i"), hasType(qualType(has(builtinType())))))); in TEST()
120 varDecl(hasName("i"), hasType(qualType(has(pointerType())))))); in TEST()
125 expr(hasType(pointsTo(recordDecl(hasName("X")))), in TEST()
126 has(ignoringParenImpCasts(declRefExpr(to(varDecl(hasName("i"))))))); in TEST()
136 expr(hasType(pointsTo(recordDecl(hasName("X")))), in TEST()
137 hasDescendant(declRefExpr(to(varDecl(hasName("i")))))); in TEST()
148 TypeMatcher TypeA = hasDeclaration(recordDecl(hasName("A"))); in TEST()
161 recordDecl(hasName("A"), has(recordDecl(hasName("B"))))); in TEST()
167 varDecl(hasType(namedDecl(hasName("S")))))); in TEST()
173 parmVarDecl(hasType(namedDecl(hasName("I")))))); in TEST()
180 parmVarDecl(hasType(pointsTo(objcInterfaceDecl(hasName("Foo"))))))); in TEST()
186 parmVarDecl(hasType(namedDecl(hasName("T")))))); in TEST()
200 parmVarDecl(hasType(namedDecl(hasName("S")))))); in TEST()
213 EXPECT_TRUE(matches(Using, unresolvedUsingTypenameDecl(hasName("Foo")))); in TEST()
215 EXPECT_TRUE(matches(Using, parmVarDecl(hasType(namedDecl(hasName("Foo")))))); in TEST()
221 qualType(hasDeclaration(enumDecl(hasName("X"))))))))); in TEST()
232 varDecl(hasName("a"), in TEST()
241 hasDeclaration(namedDecl(hasName("A")))))))); in TEST()
245 TypeMatcher ClassX = hasDeclaration(recordDecl(hasName("X"))); in TEST()
257 TypeMatcher ClassX = hasDeclaration(recordDecl(hasName("X"))); in TEST()
268 DeclarationMatcher ClassX = recordDecl(hasName("X")); in TEST()
277 DeclarationMatcher ClassX = recordDecl(hasName("X")); in TEST()
291 typedefDecl(hasType(asString("foo")), hasName("bar")))); in TEST()
301 typedefNameDecl(hasType(asString("foo")), hasName("bar")))); in TEST()
306 varDecl(hasName("x"), hasTypeLoc(loc(asString("int")))))); in TEST()
315 StatementMatcher CallMethodX = callExpr(callee(cxxMethodDecl(hasName("x")))); in TEST()
336 hasArgument(0, declRefExpr(to(varDecl(hasName("y")))))); in TEST()
344 hasArgument(42, declRefExpr(to(varDecl(hasName("y")))))); in TEST()
351 ignoringParenImpCasts(declRefExpr(to(varDecl(hasName("y"))))))); in TEST()
363 declRefExpr(to(varDecl(hasName("y")))).bind("arg"); in TEST()
376 declRefExpr(to(varDecl(hasName("y")))).bind("arg"); in TEST()
405 declRefExpr(to(varDecl(hasName("y")))).bind("arg"); in TEST()
429 declRefExpr(to(varDecl(hasName("y")))).bind("arg"); in TEST()
477 cxxMethodDecl(hasParameter(0, hasName("x"))))); in TEST()
488 cxxMethodDecl(hasParameter(0, hasType(recordDecl(hasName("X"))))))); in TEST()
491 cxxMethodDecl(hasParameter(0, hasType(recordDecl(hasName("X"))))))); in TEST()
494 0, hasType(pointsTo(recordDecl(hasName("X")))))))); in TEST()
497 0, hasType(references(recordDecl(hasName("X")))))))); in TEST()
503 cxxMethodDecl(hasAnyParameter(hasType(recordDecl(hasName("X"))))))); in TEST()
506 cxxMethodDecl(hasAnyParameter(hasType(recordDecl(hasName("X"))))))); in TEST()
516 recordDecl(hasName("Y"))))))); in TEST()
522 cxxMethodDecl(hasAnyParameter(hasType(recordDecl(hasName("X"))))))); in TEST()
528 hasType(pointsTo(recordDecl(hasName("X")))))))); in TEST()
533 cxxMethodDecl(hasAnyParameter(hasName("x"))))); in TEST()
535 cxxMethodDecl(hasAnyParameter(hasName("x"))))); in TEST()
552 refersToDeclaration(fieldDecl(hasName("next"))))))); in TEST()
565 hasDescendant(declRefExpr(to(fieldDecl(hasName("next")))))))))); in TEST()
620 cxxConstructorDecl(ofClass(hasName("Foo"))))); in TEST()
622 cxxConstructorDecl(ofClass(hasName("Bar"))))); in TEST()
627 cxxDestructorDecl(ofClass(hasName("Foo"))))); in TEST()
632 cxxDestructorDecl(ofClass(hasName("Foo"))))); in TEST()
656 forField(hasType(recordDecl(hasName("Baz")))))))); in TEST()
658 forField(hasName("foo_")))))); in TEST()
660 forField(hasType(recordDecl(hasName("Bar")))))))); in TEST()
684 allOf(forField(hasName("foo_")), isWritten()))))); in TEST()
686 allOf(forField(hasName("bar_")), isWritten()))))); in TEST()
688 allOf(forField(hasName("bar_")), unless(isWritten())))))); in TEST()
703 hasName("E"))))); in TEST()
706 hasName("D"))))); in TEST()
709 hasName("D"))))); in TEST()
712 hasName("E"))))); in TEST()
929 ofClass(hasName("X"))))); in TEST()
946 callExpr(callee(cxxMethodDecl(hasName("x")))))); in TEST()
957 recordDecl(hasName("C"), hasDescendant(callExpr( in TEST()
958 callee(cxxMethodDecl(hasName("x")))))))); in TEST()
995 cxxForRangeStmt(hasRangeInit(declRefExpr(to(varDecl(hasName("a")))))))); in TEST()
1051 cxxMethodDecl(ofClass(hasName("X"))), true, "-std=gnu++98")); in TEST()
1054 cxxMethodDecl(ofClass(hasName("X"))))); in TEST()
1060 cxxMethodDecl(ofClass(hasName("X"))), true, "-std=gnu++98")); in TEST()
1107 declRefExpr(to(varDecl(hasName("x"))))))))); in TEST()
1146 declRefExpr(to(varDecl(hasName("x"))))))))); in TEST()
1205 declRefExpr(to(varDecl(hasName("x"))))))))); in TEST()
1217 declRefExpr(to(varDecl(hasName("x"))))))))); in TEST()
1346 … recordDecl(hasName("C"), forEach(fieldDecl(hasName("x")).bind("x"))), in TEST()
1352 recordDecl(hasName("C"), forEach(fieldDecl().bind("f"))), in TEST()
1359 recordDecl(hasName("C"), in TEST()
1366 recordDecl(hasName("C"), in TEST()
1367 … forEachDescendant(fieldDecl(hasName("x")).bind("x"))), in TEST()
1373 isDefinition(), decl().bind("x"), hasName("C")); in TEST()
1376 recordDecl(hasName("A"), anyOf(m, forEachDescendant(m))), in TEST()
1384 recordDecl(hasName("A"), allOf(hasDescendant(m), anyOf(m, anything()))), in TEST()
1392 recordDecl(hasName("C"), forEachDescendant(fieldDecl().bind("f"))), in TEST()
1400 recordDecl(hasName("C"), forEachDescendant(recordDecl( in TEST()
1443 recordDecl().bind("x"), hasName("::X"), in TEST()
1444 anyOf(forEachDescendant(recordDecl(hasName("Y"))), anything())), in TEST()
1447 "class X {};", recordDecl(recordDecl().bind("x"), hasName("::X"), in TEST()
1458 cxxRecordDecl(decl().bind("x"), hasMethod(hasName("g"))), in TEST()
1464 hasAnyConstructorInitializer(forField(hasName("b")))))), in TEST()
1472 functionDecl(decl().bind("x"), hasAnyParameter(hasName("y"))), in TEST()
1496 functionDecl(decl().bind("x"), hasAncestor(recordDecl(hasName("::A")))), in TEST()
1503 ifStmt(stmt().bind("x"), hasAncestor(recordDecl(hasName("::A")))), in TEST()
1507 recordDecl(hasName("::A"), decl().bind("x"), unless(hasName("fooble"))), in TEST()
1511 cxxConstructorDecl(hasName("::A::A"), decl().bind("x"), in TEST()
1512 forEachConstructorInitializer(forField(hasName("i")))), in TEST()
1519 recordDecl(hasName("C"), forEachDescendant(decl().bind("decl"))), in TEST()
1523 recordDecl(hasName("C"), forEachDescendant(decl().bind("decl"))), in TEST()
1530 recordDecl(hasName("::A"), findAll(recordDecl(hasName("::A")).bind("v"))), in TEST()
1537 recordDecl(hasName("::A"), findAll(fieldDecl().bind("v"))), in TEST()
1544 recordDecl(hasName("::A"), in TEST()
1545 findAll(decl(anyOf(recordDecl(hasName("::A")).bind("v"), in TEST()
1551 recordDecl(hasName("::A"), findAll(recordDecl(isDefinition()).bind("v"))), in TEST()
1558 recordDecl(hasName("C"), hasAncestor(recordDecl(hasName("A")))))); in TEST()
1564 recordDecl(hasName("C"), hasAncestor(recordDecl(hasName("X")))))); in TEST()
1570 varDecl(hasName("c"), hasType(recordDecl(hasName("C"), in TEST()
1571 hasAncestor(recordDecl(hasName("A")))))))); in TEST()
1583 integerLiteral(equals(42), hasAncestor(functionDecl(hasName("f")))))); in TEST()
1613 varDecl(hasName("x"), in TEST()
1624 hasAncestor(recordDecl(hasName("A")))))); in TEST()
1632 hasAncestor(recordDecl(hasName("A"))))))))); in TEST()
1780 elaboratedType(hasQualifier(hasPrefix(specifiesNamespace(hasName("N"))))))); in TEST()
1786 elaboratedType(hasQualifier(hasPrefix(specifiesNamespace(hasName("N"))))))); in TEST()
1802 hasDeclaration(namedDecl(hasName("D"))))))))); in TEST()
1834 specifiesNamespace(hasName("a"))))))); in TEST()
1839 specifiesNamespace(hasName("a"))))))); in TEST()
1844 specifiesNamespace(hasName("a"))))))); in TEST()
1865 functionDecl(hasName("f"), in TEST()
1879 specifiesNamespace(hasName("a")))))))); in TEST()
1884 specifiesNamespace(hasName("a")))))))); in TEST()
1889 specifiesNamespace(hasName("a")))))))); in TEST()
1908 functionDecl(hasName("f"), in TEST()
1935 "class X { class Y {}; };", recordDecl(hasName("::X")).bind("X"), in TEST()
1937 "X", decl(hasDescendant(recordDecl(hasName("X::Y")).bind("Y"))), in TEST()
1940 "class X { class Y {}; };", recordDecl(hasName("::X")).bind("X"), in TEST()
1942 "X", decl(hasDescendant(recordDecl(hasName("X::Z")).bind("Z"))), in TEST()
1959 "class X { class Y {}; };", recordDecl(hasName("::X")).bind("X"), in TEST()
1961 "X", recordDecl(has(recordDecl(hasName("X::Y")).bind("Y"))), "Y"))); in TEST()
1963 "class X { class Y {}; };", recordDecl(hasName("::X")).bind("X"), in TEST()
1965 "X", recordDecl(has(recordDecl(hasName("X::Z")).bind("Z"))), "Z"))); in TEST()
1994 returnStmt(forFunction(hasName("operator=")), in TEST()
1999 returnStmt(forFunction(hasName("operator=")), in TEST()
2004 returnStmt(forFunction(hasName("operator()")), in TEST()
2006 EXPECT_TRUE(matches(CppString2, returnStmt(forFunction(hasName("F2"))))); in TEST()
2007 EXPECT_TRUE(notMatches(CppString2, returnStmt(forFunction(hasName("F"))))); in TEST()
2012 return cxxMethodDecl(ofClass(hasName(ClassName)), isVirtual(), in TEST()