| /llvm-project-15.0.7/clang/unittests/ASTMatchers/ |
| H A D | ASTMatchersNarrowingTest.cpp | 195 DeclarationMatcher HasClassX = recordDecl(has(recordDecl(hasName("X")))); in TEST_P() 200 recordDecl(hasName("Y"), has(recordDecl(hasName("X")))); in TEST_P() 212 recordDecl(has(recordDecl(has(recordDecl(hasName("X"))), in TEST_P() 214 has(recordDecl(has(recordDecl(hasName("A"))), in TEST_P() 269 anyOf(has(recordDecl(anyOf(has(recordDecl(hasName("X"))), in TEST_P() 271 has(recordDecl(anyOf(hasName("C"), has(recordDecl(hasName("A"))), in TEST_P() 302 recordDecl(hasName("X"), has(recordDecl(hasName("Z"))), in TEST_P() 335 recordDecl(hasDescendant(recordDecl(hasName("X"))), hasName("Z")); in TEST_P() 368 recordDecl(hasDescendant(recordDecl( in TEST_P() 3645 recordDecl( in TEST_P() [all …]
|
| H A D | ASTMatchersInternalTest.cpp | 26 DeclarationMatcher HasEmptyName = recordDecl(hasName("")); in TEST() 33 DeclarationMatcher HasEmptyName = recordDecl(matchesName("")); in TEST() 183 polymorphicHas(recordDecl(hasName("B")).bind("b")); in TEST() 195 polymorphicHas(recordDecl(hasName("B"))); in TEST() 315 recordDecl(hasName("X"), isExpansionInMainFile()))); in TEST() 316 EXPECT_TRUE(notMatches("", recordDecl(isExpansionInMainFile()))); in TEST() 328 recordDecl(isExpansionInSystemHeader()), in TEST() 334 recordDecl(isExpansionInSystemHeader()))); in TEST() 335 EXPECT_TRUE(notMatches("", recordDecl(isExpansionInSystemHeader()))); in TEST() 346 recordDecl(isExpansionInFileMatching("b.*"), hasName("B")), true, in TEST() [all …]
|
| H A D | ASTMatchersTraversalTest.cpp | 162 recordDecl(hasName("A"), has(recordDecl(hasName("B"))))); in TEST() 4960 recordDecl(hasName("C"), forEachDescendant(recordDecl( in TEST() 5071 recordDecl( in TEST() 5076 "class X {};", recordDecl(recordDecl().bind("x"), hasName("::X"), in TEST() 5159 recordDecl(hasName("::A"), findAll(recordDecl(hasName("::A")).bind("v"))), in TEST() 5180 recordDecl(hasName("::A"), findAll(recordDecl(isDefinition()).bind("v"))), in TEST() 5187 recordDecl(hasName("C"), hasAncestor(recordDecl(hasName("A")))))); in TEST() 5193 recordDecl(hasName("C"), hasAncestor(recordDecl(hasName("X")))))); in TEST() 5218 fieldDecl(hasAncestor(recordDecl(hasAncestor(recordDecl().bind("r"))))), in TEST() 5635 "X", recordDecl(has(recordDecl(hasName("X::Y")).bind("Y"))), "Y"))); in TEST() [all …]
|
| H A D | ASTMatchersNodeTest.cpp | 103 DeclarationMatcher ClassX = recordDecl(recordDecl(hasName("X"))); in TEST_P() 210 friendDecl(hasType(recordDecl(hasName("X")))))); in TEST_P() 324 cxxMemberCallExpr(on(hasType(recordDecl(hasName("Y"))))); in TEST_P() 338 cxxMemberCallExpr(on(hasType(pointsTo(recordDecl(hasName("Y")))))); in TEST_P() 480 TK_AsIs, cxxMemberCallExpr(thisPointerType(recordDecl(hasName("Y"))))); in TEST_P() 509 cxxMemberCallExpr(thisPointerType(recordDecl(hasName("Y")))))))); in TEST_P() 1383 initListExpr(hasType(recordDecl(hasName("B")))))); in TEST_P() 1603 varDecl(hasType(recordDecl(hasName("X")))))); in TEST_P() 1834 recordType(hasDeclaration(recordDecl(hasName("S")))))); in TEST_P() 1940 specifiesType(hasDeclaration(recordDecl(hasName("A"))))); in TEST_P() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | SpuriouslyWakeUpFunctionsCheck.cpp | 22 hasDeclaration(varDecl(hasType(recordDecl(classTemplateSpecializationDecl( in registerMatchers() 35 declRefExpr(to(varDecl(hasType(references(recordDecl( in registerMatchers() 42 declRefExpr(to(varDecl(hasType(references(recordDecl( in registerMatchers() 49 declRefExpr(to(varDecl(hasType(references(recordDecl( in registerMatchers()
|
| H A D | DanglingHandleCheck.cpp | 78 recordType(hasDeclaration(recordDecl(isASequence())))))))), in makeContainerMatcher() 82 recordType(hasDeclaration(recordDecl( in makeContainerMatcher() 161 recordType(hasDeclaration(recordDecl( in registerMatchersForReturn()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | RedundantSmartptrGetCheck.cpp | 49 return recordDecl(hasAnyName("::std::unique_ptr", "::std::shared_ptr")); in knownSmartptr() 54 const auto QuacksLikeASmartptr = recordDecl( in registerMatchersForGetArrowStart() 55 recordDecl().bind("duck_typing"), in registerMatchersForGetArrowStart() 76 recordDecl(Smartptr, has(cxxConversionDecl(returns(booleanType()))))); in registerMatchersForGetArrowStart()
|
| H A D | RedundantMemberInitCheck.cpp | 41 unless(forField(hasParent(recordDecl(isUnion()))))) in registerMatchers()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | AbstractBasicWriter.h | 186 if (const auto *recordDecl = dyn_cast<CXXRecordDecl>(baseOrMember)) { in writeLValuePathSerializationHelper() local 187 asImpl().writeDeclRef(recordDecl); in writeLValuePathSerializationHelper() 188 elemTy = ctx.getRecordType(recordDecl); in writeLValuePathSerializationHelper()
|
| H A D | AbstractBasicReader.h | 199 if (auto *recordDecl = dyn_cast<CXXRecordDecl>(decl)) in readLValuePathSerializationHelper() local 200 elemTy = getASTContext().getRecordType(recordDecl); in readLValuePathSerializationHelper()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/ |
| H A D | FasterStrsplitDelimiterCheck.cpp | 67 cxxConstructExpr(hasType(recordDecl(hasName("::absl::string_view"))), in registerMatchers() 75 hasType(recordDecl(hasName("::absl::ByAnyChar"))), in registerMatchers()
|
| /llvm-project-15.0.7/clang/unittests/ASTMatchers/Dynamic/ |
| H A D | VariantValueTest.cpp | 56 Value = VariantMatcher::SingleMatcher(recordDecl()); in TEST() 83 Value = VariantMatcher::SingleMatcher(recordDecl()); in TEST() 150 recordDecl(hasName("X")))) in TEST()
|
| /llvm-project-15.0.7/clang/docs/ |
| H A D | LibASTMatchers.rst | 30 in the AST of a translation unit, you can call `recordDecl() 34 call ``recordDecl(hasName("Foo"))`` returns a matcher that matches classes or 39 "``Bar``": ``recordDecl(hasName("Foo"), isDerivedFrom("Bar"))``. 81 are bindable; for example, ``recordDecl(hasName("MyClass")).bind("id")`` will 82 bind the matched ``recordDecl`` node to the string "``id``", to be later
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | ProTypeUnionAccessCheck.cpp | 21 memberExpr(hasObjectExpression(hasType(recordDecl(isUnion())))) in registerMatchers()
|
| H A D | InterfacesGlobalInitCheck.cpp | 24 recordDecl())), // Class scope. in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/android/ |
| H A D | CloexecAccept4Check.cpp | 22 hasType(pointsTo(recordDecl(isStruct(), hasName("sockaddr")))); in registerMatchers()
|
| H A D | CloexecAcceptCheck.cpp | 21 hasType(pointsTo(recordDecl(isStruct(), hasName("sockaddr")))); in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | AvoidCArraysCheck.cpp | 51 hasParent(recordDecl(isExternCContext())))), in registerMatchers()
|
| H A D | ReplaceAutoPtrCheck.cpp | 52 auto AutoPtrDecl = recordDecl(hasName("auto_ptr"), isInStdNamespace()); in registerMatchers()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | PointerIterationChecker.cpp | 69 recordDecl(hasName("std::unordered_set") in matchUnorderedIterWithPointers()
|
| /llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/ |
| H A D | DataflowEnvironmentTest.cpp | 67 match(qualType(hasDeclaration(recordDecl( in TEST_F()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/ |
| H A D | FasterStringFindCheck.cpp | 75 recordDecl(hasAnyName(StringLikeClasses)))))), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ |
| H A D | UnconventionalAssignOperatorCheck.cpp | 31 hasName("operator="), ofClass(recordDecl().bind("class"))) in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/ |
| H A D | StructPackAlignCheck.cpp | 22 Finder->addMatcher(recordDecl(isStruct(), isDefinition(), in registerMatchers()
|
| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | ASTContextParentMapTest.cpp | 30 cxxMethodDecl(hasParent(recordDecl(hasName("C")))))); in TEST()
|