Home
last modified time | relevance | path

Searched refs:recordDecl (Results 1 – 25 of 43) sorted by relevance

12

/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersNarrowingTest.cpp195 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 DASTMatchersInternalTest.cpp26 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 DASTMatchersTraversalTest.cpp162 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 DASTMatchersNodeTest.cpp103 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 DSpuriouslyWakeUpFunctionsCheck.cpp22 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 DDanglingHandleCheck.cpp78 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 DRedundantSmartptrGetCheck.cpp49 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 DRedundantMemberInitCheck.cpp41 unless(forField(hasParent(recordDecl(isUnion()))))) in registerMatchers()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DAbstractBasicWriter.h186 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 DAbstractBasicReader.h199 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 DFasterStrsplitDelimiterCheck.cpp67 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 DVariantValueTest.cpp56 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 DLibASTMatchers.rst30 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 DProTypeUnionAccessCheck.cpp21 memberExpr(hasObjectExpression(hasType(recordDecl(isUnion())))) in registerMatchers()
H A DInterfacesGlobalInitCheck.cpp24 recordDecl())), // Class scope. in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/android/
H A DCloexecAccept4Check.cpp22 hasType(pointsTo(recordDecl(isStruct(), hasName("sockaddr")))); in registerMatchers()
H A DCloexecAcceptCheck.cpp21 hasType(pointsTo(recordDecl(isStruct(), hasName("sockaddr")))); in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DAvoidCArraysCheck.cpp51 hasParent(recordDecl(isExternCContext())))), in registerMatchers()
H A DReplaceAutoPtrCheck.cpp52 auto AutoPtrDecl = recordDecl(hasName("auto_ptr"), isInStdNamespace()); in registerMatchers()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DPointerIterationChecker.cpp69 recordDecl(hasName("std::unordered_set") in matchUnorderedIterWithPointers()
/llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/
H A DDataflowEnvironmentTest.cpp67 match(qualType(hasDeclaration(recordDecl( in TEST_F()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DFasterStringFindCheck.cpp75 recordDecl(hasAnyName(StringLikeClasses)))))), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DUnconventionalAssignOperatorCheck.cpp31 hasName("operator="), ofClass(recordDecl().bind("class"))) in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/
H A DStructPackAlignCheck.cpp22 Finder->addMatcher(recordDecl(isStruct(), isDefinition(), in registerMatchers()
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTContextParentMapTest.cpp30 cxxMethodDecl(hasParent(recordDecl(hasName("C")))))); in TEST()

12