Lines Matching refs:fieldDecl
277 forEach(fieldDecl(hasAncestor(forStmt())))); in TEST()
607 fieldDecl(hasType(asString("ns::A"))))); in TEST()
609 fieldDecl(hasType(asString("struct (anonymous namespace)::A"))))); 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()
1375 memberExpr(hasDeclaration(fieldDecl(hasType(isInteger())))))); in TEST()
1378 memberExpr(hasDeclaration(fieldDecl(hasType(isInteger())))))); 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()
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()
1566 fieldDecl(hasType(recordDecl(hasName("A")))))))); in TEST()
1581 fieldDecl(hasType(recordDecl(hasName("A")))))))); 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()