Lines Matching refs:fieldDecl
418 forEach(fieldDecl(hasAncestor(forStmt())))); in TEST_P()
916 fieldDecl(hasType(asString("ns::A"))))); in TEST_P()
919 fieldDecl(hasType(asString("struct (anonymous namespace)::A"))))); in TEST_P()
1664 has(fieldDecl(hasName("mem")).bind("templMem")))))))))), in TEST()
2033 EXPECT_TRUE(matches(code, fieldDecl(hasName("m")))); in TEST_P()
2034 EXPECT_TRUE(matches(code, fieldDecl(hasName("S::m")))); in TEST_P()
2035 EXPECT_TRUE(matches(code, fieldDecl(hasName("F(int)::S::m")))); in TEST_P()
2036 EXPECT_TRUE(matches(code, fieldDecl(hasName("a::F(int)::S::m")))); in TEST_P()
2037 EXPECT_TRUE(matches(code, fieldDecl(hasName("::a::F(int)::S::m")))); in TEST_P()
2217 memberExpr(hasDeclaration(fieldDecl(hasType(isInteger())))))); in TEST_P()
2220 memberExpr(hasDeclaration(fieldDecl(hasType(isInteger())))))); in TEST_P()
2225 fieldDecl(isBitField(), hasName("a")))); in TEST_P()
2227 fieldDecl(isBitField(), hasName("b")))); in TEST_P()
2229 fieldDecl(isBitField(), hasBitWidth(2), hasName("a")))); in TEST_P()
2239 fieldDecl(hasInClassInitializer(integerLiteral(equals(2))), in TEST_P()
2243 fieldDecl(hasInClassInitializer(anything()), hasName("b")))); in TEST_P()
2252 matches("struct A { int i; };", fieldDecl(isPublic(), hasName("i")))); in TEST_P()
2254 fieldDecl(isProtected(), hasName("i")))); in TEST_P()
2256 notMatches("struct A { int i; };", fieldDecl(isPrivate(), hasName("i")))); in TEST_P()
2259 notMatches("class A { int i; };", fieldDecl(isPublic(), hasName("i")))); in TEST_P()
2261 fieldDecl(isProtected(), hasName("i")))); in TEST_P()
2263 matches("class A { int i; };", fieldDecl(isPrivate(), hasName("i")))); in TEST_P()
2266 fieldDecl(isPublic(), hasName("i")))); in TEST_P()
2268 fieldDecl(isProtected(), hasName("i")))); in TEST_P()
2270 fieldDecl(isPrivate(), hasName("i")))); in TEST_P()
2400 EXPECT_TRUE(notMatches("class X { void m(); };", fieldDecl(hasName("m")))); in TEST_P()
2401 EXPECT_TRUE(notMatches("class X { class m {}; };", fieldDecl(hasName("m")))); in TEST_P()
2402 EXPECT_TRUE(notMatches("class X { enum { m }; };", fieldDecl(hasName("m")))); in TEST_P()
2403 EXPECT_TRUE(notMatches("class X { enum m {}; };", fieldDecl(hasName("m")))); in TEST_P()
2407 EXPECT_TRUE(matches("struct X { int m; };", fieldDecl(hasName("m")))); in TEST_P()
2454 recordDecl(eachOf(has(fieldDecl(hasName("a")).bind("v")), in TEST_P()
2455 has(fieldDecl(hasName("b")).bind("v")))), in TEST_P()
2462 recordDecl(eachOf(has(fieldDecl(hasName("a")).bind("v")), in TEST_P()
2463 has(fieldDecl(hasName("b")).bind("v")))), in TEST_P()
2467 recordDecl(eachOf(has(fieldDecl(hasName("a")).bind("v")), in TEST_P()
2468 has(fieldDecl(hasName("b")).bind("v")))), in TEST_P()
2472 recordDecl(eachOf(has(fieldDecl(hasName("a")).bind("v")), in TEST_P()
2473 has(fieldDecl(hasName("b")).bind("v")))))); in TEST_P()
2479 recordDecl(optionally(has(fieldDecl(hasName("c")).bind("c")))), in TEST_P()
2487 optionally(has(fieldDecl(hasName("c")).bind("v")))); in TEST_P()
2499 recordDecl(optionally(has(fieldDecl(hasName("a")).bind("v")))), in TEST_P()
2520 hasDescendant(fieldDecl(hasType(recordDecl(hasName("A")))))))); in TEST_P()
2544 hasDescendant(fieldDecl( in TEST_P()
3144 has(fieldDecl(hasName("a"), hasType(type().bind("t")))), in TEST_P()
3145 has(fieldDecl(hasName("b"), hasType(type(equalsBoundNode("t")))))))); in TEST_P()
3150 has(fieldDecl(hasName("a"), hasType(type().bind("t")))), in TEST_P()
3151 has(fieldDecl(hasName("b"), hasType(type(equalsBoundNode("t")))))))); in TEST_P()