/external/clang/unittests/ASTMatchers/ |
D | ASTMatchersNarrowingTest.cpp | 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() [all …]
|
D | ASTMatchersTraversalTest.cpp | 552 refersToDeclaration(fieldDecl(hasName("next"))))))); in TEST() 565 hasDescendant(declRefExpr(to(fieldDecl(hasName("next")))))))))); in TEST() 1346 … recordDecl(hasName("C"), forEach(fieldDecl(hasName("x")).bind("x"))), in TEST() 1352 recordDecl(hasName("C"), forEach(fieldDecl().bind("f"))), in TEST() 1360 forEach(recordDecl(forEach(fieldDecl().bind("f"))))), in TEST() 1367 … forEachDescendant(fieldDecl(hasName("x")).bind("x"))), in TEST() 1392 recordDecl(hasName("C"), forEachDescendant(fieldDecl().bind("f"))), in TEST() 1401 forEachDescendant(fieldDecl().bind("f"))))), in TEST() 1416 "class X { int a; };", recordDecl(decl().bind("x"), has(fieldDecl())), in TEST() 1537 recordDecl(hasName("::A"), findAll(fieldDecl().bind("v"))), in TEST() [all …]
|
D | ASTMatchersNodeTest.cpp | 134 hasDescendant(fieldDecl(hasName("a")))))); in TEST() 141 hasDescendant(fieldDecl(hasName("a")))))); in TEST() 1452 "", match(fieldDecl(hasParent(decl(has(fieldDecl( in verify() 1467 fieldDecl(hasName("y"), hasType(type().bind(""))).bind("decl"), in TEST()
|
/external/llvm-project/clang/unittests/ASTMatchers/ |
D | ASTMatchersNarrowingTest.cpp | 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() [all …]
|
D | ASTMatchersTraversalTest.cpp | 257 fieldDecl(hasType(templateSpecializationType( in TEST() 1009 refersToDeclaration(fieldDecl(hasName("next"))))))); in TEST() 1022 hasDescendant(declRefExpr(to(fieldDecl(hasName("next")))))))))); in TEST() 2237 has(fieldDecl(hasType(asString("int"))))); in TEST() 2243 has(fieldDecl(hasType(asString("double"))))); in TEST() 2288 has(fieldDecl(hasType(asString("float"))))); in TEST() 3354 … recordDecl(hasName("C"), forEach(fieldDecl(hasName("x")).bind("x"))), in TEST() 3360 recordDecl(hasName("C"), forEach(fieldDecl().bind("f"))), in TEST() 3368 forEach(recordDecl(forEach(fieldDecl().bind("f"))))), in TEST() 3407 … forEachDescendant(fieldDecl(hasName("x")).bind("x"))), in TEST() [all …]
|
D | ASTMatchersNodeTest.cpp | 164 classTemplateDecl(hasName("X"), hasDescendant(fieldDecl(hasName("a")))))); in TEST_P() 175 classTemplateDecl(hasName("X"), hasDescendant(fieldDecl(hasName("a")))))); in TEST_P() 1965 "", match(fieldDecl(hasParent(decl(has(fieldDecl( in verify() 1986 fieldDecl(hasName("y"), hasType(type().bind(""))).bind("decl"), in TEST_P()
|
/external/llvm-project/clang-tools-extra/clang-tidy/misc/ |
D | NonPrivateMemberVariablesInClassesCheck.cpp | 31 return cxxRecordDecl(has(fieldDecl(unless(isPublic())))) in AST_MATCHER() 71 ? fieldDecl(isProtected()) in registerMatchers() 72 : fieldDecl(unless(isPrivate())); in registerMatchers()
|
D | NonCopyableObjects.cpp | 45 namedDecl(anyOf(varDecl(BadFILEType), fieldDecl(BadFILEType))) in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | DeleteNullPointerCheck.cpp | 29 fieldDecl(equalsBoundNode("deletedMemberPointer")))))))) in registerMatchers() 34 memberExpr(hasDeclaration(fieldDecl().bind("deletedMemberPointer"))))); in registerMatchers()
|
D | ImplicitBoolConversionCheck.cpp | 265 has(ignoringImplicit(memberExpr(hasDeclaration(fieldDecl(hasBitWidth(1)))))), in registerMatchers() 306 hasLHS(memberExpr(hasDeclaration(fieldDecl(hasBitWidth(1)))))); in registerMatchers()
|
D | RedundantStringInitCheck.cpp | 116 namedDecl(fieldDecl(StringType, hasInClassInitializer(EmptyStringInit)) in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
D | AvoidCArraysCheck.cpp | 50 hasParent(fieldDecl( in registerMatchers()
|
D | UseEqualsDefaultCheck.cpp | 55 member(fieldDecl(equalsNode(Field))))); in accessToFieldInVar() 184 member(fieldDecl(equalsNode(Field)))); in isCopyAssignmentAndCanBeDefaulted()
|
D | UseEmplaceCheck.cpp | 65 ignoringImplicit(memberExpr(hasDeclaration(fieldDecl(isBitField()))))); in registerMatchers()
|
D | RedundantVoidArgCheck.cpp | 57 Finder->addMatcher(fieldDecl(FunctionOrMemberPointer).bind(FieldId), this); in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/performance/ |
D | TriviallyDestructibleCheck.cpp | 45 has(fieldDecl(unless( in registerMatchers()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | PointerSortingChecker.cpp | 84 fieldDecl(hasType(hasCanonicalType( in matchSortWithPointers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
D | UnhandledSelfAssignmentCheck.cpp | 91 has(fieldDecl(anyOf(hasType(pointerType()), hasType(SmartPointerType), in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/hicpp/ |
D | MultiwayPathsCoveredCheck.cpp | 33 fieldDecl(isBitField()).bind("bitfield")))), in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
D | ProTypeMemberInitCheck.cpp | 53 hasLHS(memberExpr(member(fieldDecl().bind("fieldDecl")))))), in removeFieldsInitializedInBody() 289 hasType(recordDecl(has(fieldDecl()), in registerMatchers()
|
D | OwningMemoryCheck.cpp | 177 has(fieldDecl(IsOwnerType).bind("undestructed_owner_member")), in registerMatchers()
|
/external/llvm-project/clang/unittests/AST/ |
D | StructuralEquivalenceTest.cpp | 283 FirstDeclMatcher<FieldDecl>().match(get<1>(Decls), fieldDecl(hasName("a"))); in TEST_F() 680 FirstDeclMatcher<FieldDecl>().match(TU, fieldDecl(hasName("entry0"))); in TEST_F() 682 FirstDeclMatcher<FieldDecl>().match(TU, fieldDecl(hasName("entry1"))); in TEST_F() 780 FirstDeclMatcher<FieldDecl>().match(FromTU, fieldDecl(hasName("entry1"))); in TEST_F() 784 FirstDeclMatcher<FieldDecl>().match(ToTU, fieldDecl(hasName("entry0"))); in TEST_F()
|
D | ASTImporterTest.cpp | 605 fieldDecl(hasType(dependentTemplateSpecializationType()))))))); in TEST_P() 630 varDecl(hasType(classTemplateSpecializationDecl(has(fieldDecl(hasType( in TEST_P() 880 has(fieldDecl(hasType(dependentSizedArrayType()))))))); in TEST_P() 1423 has(classTemplateSpecializationDecl(has(fieldDecl(hasName("a")))))))); in TEST_P() 2951 FromTU, fieldDecl(hasName("x"))); in TEST_P() 2958 FromTU, fieldDecl(hasName("x"))); in TEST_P() 2969 FromTU, fieldDecl(hasName("x"))); in TEST_P() 2977 FromTU, fieldDecl(hasName("x"))); in TEST_P() 3045 FirstDeclMatcher<FieldDecl>().match(ToTU, fieldDecl(hasName("entry0"))); in TEST_P() 3047 FirstDeclMatcher<FieldDecl>().match(ToTU, fieldDecl(hasName("entry1"))); in TEST_P() [all …]
|
/external/clang/unittests/ASTMatchers/Dynamic/ |
D | RegistryTest.cpp | 374 has(fieldDecl(hasName("Foo"))), in TEST_F()
|
/external/clang/lib/ASTMatchers/Dynamic/ |
D | Registry.cpp | 180 REGISTER_MATCHER(fieldDecl); in RegistryMaps()
|