| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ |
| H A D | NonPrivateMemberVariablesInClassesCheck.cpp | 31 return cxxRecordDecl(has(fieldDecl(unless(isPublic())))) in AST_MATCHER() 71 ? fieldDecl(isProtected()) in registerMatchers() 72 : fieldDecl(unless(isPrivate())); in registerMatchers()
|
| H A D | NonCopyableObjects.cpp | 45 namedDecl(anyOf(varDecl(BadFILEType), fieldDecl(BadFILEType))) in registerMatchers()
|
| /llvm-project-15.0.7/clang/unittests/ASTMatchers/ |
| H A D | ASTMatchersNarrowingTest.cpp | 417 forEach(fieldDecl(hasAncestor(forStmt())))); in TEST_P() 1356 fieldDecl(hasType(asString("ns::A"))))); in TEST_P() 2535 EXPECT_TRUE(matches(code, fieldDecl(hasName("m")))); in TEST_P() 2536 EXPECT_TRUE(matches(code, fieldDecl(hasName("S::m")))); in TEST_P() 2727 fieldDecl(isBitField(), hasName("a")))); in TEST_P() 2768 fieldDecl(isPublic(), hasName("i")))); in TEST_P() 2770 fieldDecl(isProtected(), hasName("i")))); in TEST_P() 2956 recordDecl(eachOf(has(fieldDecl(hasName("a")).bind("v")), in TEST_P() 2964 recordDecl(eachOf(has(fieldDecl(hasName("a")).bind("v")), in TEST_P() 2969 recordDecl(eachOf(has(fieldDecl(hasName("a")).bind("v")), in TEST_P() [all …]
|
| H A D | ASTMatchersTraversalTest.cpp | 259 fieldDecl(hasType(templateSpecializationType( in TEST() 1229 refersToDeclaration(fieldDecl(hasName("next"))))))); in TEST() 1242 hasDescendant(declRefExpr(to(fieldDecl(hasName("next")))))))))); in TEST() 2703 has(fieldDecl(hasType(asString("int"))))); in TEST() 4888 forEach(recordDecl(forEach(fieldDecl().bind("f"))))), in TEST() 4952 recordDecl(hasName("C"), forEachDescendant(fieldDecl().bind("f"))), in TEST() 4961 forEachDescendant(fieldDecl().bind("f"))))), in TEST() 5166 recordDecl(hasName("::A"), findAll(fieldDecl().bind("v"))), in TEST() 5175 fieldDecl().bind("v"))))), in TEST() 5225 fieldDecl(hasAncestor( in TEST() [all …]
|
| H A 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() 2009 "", match(fieldDecl(hasParent(decl(has(fieldDecl( in verify() 2030 fieldDecl(hasName("y"), hasType(type().bind(""))).bind("decl"), in TEST_P()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | StringviewNullptrCheck.cpp | 152 fieldDecl(HasBasicStringViewType, in StringviewNullptrCheckImpl() 161 fieldDecl(HasBasicStringViewType, in StringviewNullptrCheckImpl() 169 makeRule(cxxCtorInitializer(forField(fieldDecl(HasBasicStringViewType)), in StringviewNullptrCheckImpl() 177 makeRule(cxxCtorInitializer(forField(fieldDecl(HasBasicStringViewType)), in StringviewNullptrCheckImpl()
|
| H A D | ThrowKeywordMissingCheck.cpp | 30 hasAncestor(decl(anyOf(varDecl(), fieldDecl()))), in registerMatchers()
|
| H A D | UnhandledSelfAssignmentCheck.cpp | 88 has(fieldDecl(anyOf(hasType(pointerType()), hasType(SmartPointerType), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | DeleteNullPointerCheck.cpp | 29 fieldDecl(equalsBoundNode("deletedMemberPointer")))))) in registerMatchers() 34 memberExpr(hasDeclaration(fieldDecl().bind("deletedMemberPointer")))); in registerMatchers()
|
| H A D | ImplicitBoolConversionCheck.cpp | 266 memberExpr(hasDeclaration(fieldDecl(hasBitWidth(1)))))), in registerMatchers() 307 hasLHS(memberExpr(hasDeclaration(fieldDecl(hasBitWidth(1)))))); in registerMatchers()
|
| H A D | RedundantStringInitCheck.cpp | 108 namedDecl(fieldDecl(StringType, hasInClassInitializer(EmptyStringInit)) in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/ |
| H A D | IdDependentBackwardBranchCheck.cpp | 27 memberExpr(member(fieldDecl())).bind("assign_ref_field")))); in registerMatchers() 41 fieldDecl().bind("tid_dep_field"))))))))) in registerMatchers() 59 memberExpr(member(fieldDecl().bind("pot_tid_field"))))))))), in registerMatchers() 72 memberExpr(member(fieldDecl()))))))) in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | AvoidCArraysCheck.cpp | 50 hasParent(fieldDecl( in registerMatchers()
|
| H A D | UseEqualsDefaultCheck.cpp | 55 member(fieldDecl(equalsNode(Field))))); in accessToFieldInVar() 184 member(fieldDecl(equalsNode(Field)))); in isCopyAssignmentAndCanBeDefaulted()
|
| H A D | UseEmplaceCheck.cpp | 150 ignoringImplicit(memberExpr(hasDeclaration(fieldDecl(isBitField()))))); in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/ |
| H A D | TriviallyDestructibleCheck.cpp | 45 has(fieldDecl(unless( in registerMatchers()
|
| /llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/ |
| H A D | DataflowEnvironmentTest.cpp | 69 has(fieldDecl(hasName("R")).bind("field-r"))))) in TEST_F()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | PointerSortingChecker.cpp | 84 fieldDecl(hasType(hasCanonicalType( in matchSortWithPointers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/hicpp/ |
| H A D | MultiwayPathsCoveredCheck.cpp | 33 fieldDecl(isBitField()).bind("bitfield")))), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | ProTypeMemberInitCheck.cpp | 70 hasLHS(memberExpr(member(fieldDecl().bind("fieldDecl")))))), in removeFieldsInitializedInBody() 306 hasType(recordDecl(has(fieldDecl()), in registerMatchers()
|
| H A D | OwningMemoryCheck.cpp | 162 has(fieldDecl(IsOwnerType).bind("undestructed_owner_member")), in registerMatchers()
|
| H A D | PreferMemberInitializerCheck.cpp | 74 member(fieldDecl(indexNotLessThan(Field->getFieldIndex())))); in isSafeAssignment()
|
| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A 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()
|
| H A D | DeclTest.cpp | 131 selectFirst<FieldDecl>("B", match(fieldDecl().bind("B"), Ctx)); in TEST()
|
| H A D | ASTImporterTest.cpp | 708 varDecl(hasType(classTemplateSpecializationDecl(has(fieldDecl(hasType( in TEST_P() 1036 has(fieldDecl(hasType(dependentSizedArrayType()))))))); in TEST_P() 3162 FromTU, fieldDecl(hasName("x"))); in TEST_P() 3169 FromTU, fieldDecl(hasName("x"))); in TEST_P() 3178 FirstDeclMatcher<FieldDecl>().match(FromTU, fieldDecl(hasName("x"))); in TEST_P() 3245 FromTU, fieldDecl(hasName("x"))); in TEST_P() 3253 FromTU, fieldDecl(hasName("x"))); in TEST_P() 3328 R0, recordDecl(has(fieldDecl(hasName("next")))))); in TEST_P() 3330 R1, recordDecl(has(fieldDecl(hasName("next")))))); in TEST_P() 4958 ToTU, fieldDecl(hasName("V"), in TEST_P() [all …]
|