Home
last modified time | relevance | path

Searched refs:fieldDecl (Results 1 – 25 of 35) sorted by relevance

12

/external/clang/unittests/ASTMatchers/
DASTMatchersNarrowingTest.cpp277 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 …]
DASTMatchersTraversalTest.cpp552 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 …]
DASTMatchersNodeTest.cpp134 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/
DASTMatchersNarrowingTest.cpp418 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 …]
DASTMatchersTraversalTest.cpp257 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 …]
DASTMatchersNodeTest.cpp164 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/
DNonPrivateMemberVariablesInClassesCheck.cpp31 return cxxRecordDecl(has(fieldDecl(unless(isPublic())))) in AST_MATCHER()
71 ? fieldDecl(isProtected()) in registerMatchers()
72 : fieldDecl(unless(isPrivate())); in registerMatchers()
DNonCopyableObjects.cpp45 namedDecl(anyOf(varDecl(BadFILEType), fieldDecl(BadFILEType))) in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DDeleteNullPointerCheck.cpp29 fieldDecl(equalsBoundNode("deletedMemberPointer")))))))) in registerMatchers()
34 memberExpr(hasDeclaration(fieldDecl().bind("deletedMemberPointer"))))); in registerMatchers()
DImplicitBoolConversionCheck.cpp265 has(ignoringImplicit(memberExpr(hasDeclaration(fieldDecl(hasBitWidth(1)))))), in registerMatchers()
306 hasLHS(memberExpr(hasDeclaration(fieldDecl(hasBitWidth(1)))))); in registerMatchers()
DRedundantStringInitCheck.cpp116 namedDecl(fieldDecl(StringType, hasInClassInitializer(EmptyStringInit)) in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DAvoidCArraysCheck.cpp50 hasParent(fieldDecl( in registerMatchers()
DUseEqualsDefaultCheck.cpp55 member(fieldDecl(equalsNode(Field))))); in accessToFieldInVar()
184 member(fieldDecl(equalsNode(Field)))); in isCopyAssignmentAndCanBeDefaulted()
DUseEmplaceCheck.cpp65 ignoringImplicit(memberExpr(hasDeclaration(fieldDecl(isBitField()))))); in registerMatchers()
DRedundantVoidArgCheck.cpp57 Finder->addMatcher(fieldDecl(FunctionOrMemberPointer).bind(FieldId), this); in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/performance/
DTriviallyDestructibleCheck.cpp45 has(fieldDecl(unless( in registerMatchers()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DPointerSortingChecker.cpp84 fieldDecl(hasType(hasCanonicalType( in matchSortWithPointers()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DUnhandledSelfAssignmentCheck.cpp91 has(fieldDecl(anyOf(hasType(pointerType()), hasType(SmartPointerType), in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/hicpp/
DMultiwayPathsCoveredCheck.cpp33 fieldDecl(isBitField()).bind("bitfield")))), in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
DProTypeMemberInitCheck.cpp53 hasLHS(memberExpr(member(fieldDecl().bind("fieldDecl")))))), in removeFieldsInitializedInBody()
289 hasType(recordDecl(has(fieldDecl()), in registerMatchers()
DOwningMemoryCheck.cpp177 has(fieldDecl(IsOwnerType).bind("undestructed_owner_member")), in registerMatchers()
/external/llvm-project/clang/unittests/AST/
DStructuralEquivalenceTest.cpp283 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()
DASTImporterTest.cpp605 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/
DRegistryTest.cpp374 has(fieldDecl(hasName("Foo"))), in TEST_F()
/external/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp180 REGISTER_MATCHER(fieldDecl); in RegistryMaps()

12