Lines Matching refs:hasName

31   EXPECT_FALSE(Finder.addDynamicMatcher(hasName("x"), nullptr));  in TEST()
41 DeclarationMatcher NamedX = namedDecl(hasName("X")); in TEST()
91 DeclarationMatcher ClassX = recordDecl(recordDecl(hasName("X"))); in TEST()
104 Code, varDecl(hasName("MyVar1"), hasDeclContext(translationUnitDecl())))); in TEST()
106 Code, varDecl(hasName("MyVar2"), hasDeclContext(translationUnitDecl())))); in TEST()
109 varDecl(hasName("MyVar2"), in TEST()
119 DeclarationMatcher ClassX = classTemplateDecl(hasName("X")); in TEST()
125 DeclarationMatcher ClassX = classTemplateDecl(hasName("X")); in TEST()
133 classTemplateDecl(hasName("X"), in TEST()
134 hasDescendant(fieldDecl(hasName("a")))))); in TEST()
140 classTemplateDecl(hasName("X"), in TEST()
141 hasDescendant(fieldDecl(hasName("a")))))); in TEST()
164 EXPECT_TRUE(notMatches("class X {};", enumDecl(hasName("X")))); in TEST()
168 EXPECT_TRUE(matches("enum X {};", enumDecl(hasName("X")))); in TEST()
172 DeclarationMatcher Matcher = enumConstantDecl(hasName("A")); in TEST()
196 callExpr(hasDeclaration(cxxMethodDecl(hasName("x")))); in TEST()
202 cxxMemberCallExpr(on(hasType(recordDecl(hasName("Y"))))); in TEST()
221 cxxMemberCallExpr(on(hasType(pointsTo(recordDecl(hasName("Y")))))); in TEST()
265 nonTypeTemplateParmDecl(hasName("N")))); in TEST()
272 templateTypeParmDecl(hasName("T")))); in TEST()
293 labelDecl(hasName("FOO")))))); in TEST()
327 cxxMemberCallExpr(thisPointerType(recordDecl(hasName("Y")))); in TEST()
359 cxxMemberCallExpr(thisPointerType(recordDecl(hasName("Y")))))))); in TEST()
383 cxxMemberCallExpr(on(declRefExpr(to(varDecl(hasName("y")))))); in TEST()
440 StatementMatcher CallFunctionF = callExpr(callee(functionDecl(hasName("f")))); in TEST()
479 functionTemplateDecl(hasName("f")))); in TEST()
485 functionTemplateDecl(hasName("f")))); in TEST()
492 functionTemplateDecl(hasName("f"), in TEST()
494 functionDecl(hasName("g")))))))); in TEST()
1009 initListExpr(hasType(recordDecl(hasName("B")))))); in TEST()
1013 declRefExpr(to(functionDecl(hasName("f")))))); in TEST()
1025 usingDecl(hasAnyUsingShadowDecl(hasName("a"))))); in TEST()
1131 varDecl(hasName("b"))))))))); in TEST()
1218 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"), in TEST()
1220 EXPECT_TRUE(matches(Fragment, varDecl(hasName("ptr"), in TEST()
1222 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"), in TEST()
1224 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"), in TEST()
1226 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"), in TEST()
1228 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"), in TEST()
1232 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"), in TEST()
1234 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"), in TEST()
1236 EXPECT_TRUE(matches(Fragment, varDecl(hasName("ptr"), in TEST()
1238 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"), in TEST()
1242 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"), in TEST()
1244 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"), in TEST()
1246 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"), in TEST()
1248 EXPECT_TRUE(matches(Fragment, varDecl(hasName("ref"), in TEST()
1250 EXPECT_TRUE(matches(Fragment, varDecl(hasName("ref"), in TEST()
1252 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"), in TEST()
1256 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"), in TEST()
1258 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"), in TEST()
1260 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"), in TEST()
1262 EXPECT_TRUE(matches(Fragment, varDecl(hasName("ref"), in TEST()
1264 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"), in TEST()
1266 EXPECT_TRUE(matches(Fragment, varDecl(hasName("ref"), in TEST()
1276 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("a"), in TEST()
1278 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("b"), in TEST()
1280 EXPECT_TRUE(matches(Fragment, varDecl(hasName("c"), in TEST()
1282 EXPECT_TRUE(matches(Fragment, varDecl(hasName("c"), in TEST()
1284 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("c"), in TEST()
1286 EXPECT_TRUE(matches(Fragment, varDecl(hasName("d"), in TEST()
1288 EXPECT_TRUE(matches(Fragment, varDecl(hasName("d"), in TEST()
1290 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("d"), in TEST()
1292 EXPECT_TRUE(matches(Fragment, varDecl(hasName("e"), in TEST()
1294 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("e"), in TEST()
1296 EXPECT_TRUE(matches(Fragment, varDecl(hasName("e"), in TEST()
1321 EXPECT_TRUE(matches("typedef int X; X a;", varDecl(hasName("a"), in TEST()
1333 recordType(hasDeclaration(recordDecl(hasName("S")))))); in TEST()
1335 recordType(hasDeclaration(recordDecl(hasName("S")))))); in TEST()
1387 namespaceAliasDecl(hasName("alias")))); in TEST()
1392 specifiesType(hasDeclaration(recordDecl(hasName("A"))))); in TEST()
1401 specifiesNamespace(hasName("ns"))); in TEST()
1460 "class X { class Y {}; };", recordDecl(hasName("::X::Y")).bind(""), in TEST()
1467 fieldDecl(hasName("y"), hasType(type().bind(""))).bind("decl"), in TEST()
1473 typedefDecl(hasName("typedefDeclTest")))); in TEST()
1475 typedefDecl(hasName("typedefDeclTest2")))); in TEST()
1480 typeAliasDecl(hasName("typeAliasTest2")))); in TEST()
1482 typeAliasDecl(hasName("typeAliasTest")))); in TEST()
1487 typedefNameDecl(hasName("typedefNameDeclTest1")))); in TEST()
1489 typedefNameDecl(hasName("typedefNameDeclTest2")))); in TEST()