Home
last modified time | relevance | path

Searched refs:CXXRecordDecl (Results 1 – 25 of 356) sorted by relevance

12345678910>>...15

/llvm-project-15.0.7/clang/lib/AST/
H A DCXXInheritance.cpp68 bool CXXRecordDecl::isDerivedFrom(const CXXRecordDecl *Base) const { in isDerivedFrom()
74 bool CXXRecordDecl::isDerivedFrom(const CXXRecordDecl *Base, in isDerivedFrom()
89 bool CXXRecordDecl::isVirtuallyDerivedFrom(const CXXRecordDecl *Base) const { in isVirtuallyDerivedFrom()
109 bool CXXRecordDecl::isProvablyNotDerivedFrom(const CXXRecordDecl *Base) const { in isProvablyNotDerivedFrom()
130 const CXXRecordDecl *Record = this; in forallBases()
137 CXXRecordDecl *Base = in forallBases()
247 CXXRecordDecl *BaseRecord; in lookupInBases()
335 CXXRecordDecl *VBase = nullptr; in lookupInBases()
522 const CXXRecordDecl *BaseDecl = cast<CXXRecordDecl>(RT->getDecl()); in Collect()
691 const CXXRecordDecl *BaseDecl = in AddIndirectPrimaryBases()
[all …]
H A DVTableBuilder.cpp37 const CXXRecordDecl *DerivedClass;
42 const CXXRecordDecl *VirtualBase;
71 const CXXRecordDecl *VirtualBase;
93 const CXXRecordDecl *LayoutClass;
315 const CXXRecordDecl *DerivedRD = in ComputeReturnAdjustmentBaseOffset()
318 const CXXRecordDecl *BaseRD = in ComputeReturnAdjustmentBaseOffset()
2347 const CXXRecordDecl *VBase = in computeVTableRelatedInformation()
2902 const CXXRecordDecl *RD, in GroupNewVirtualOverloads()
2933 static bool isDirectVBase(const CXXRecordDecl *Base, const CXXRecordDecl *RD) { in isDirectVBase()
3599 const CXXRecordDecl *RD) { in computeVTableRelatedInformation()
[all …]
H A DDeclCXX.cpp75 CXXRecordDecl::DefinitionData::DefinitionData(CXXRecordDecl *D) in DefinitionData()
123 CXXRecordDecl::CXXRecordDecl(Kind K, TagKind TK, const ASTContext &C, in CXXRecordDecl() function in CXXRecordDecl
131 CXXRecordDecl *CXXRecordDecl::Create(const ASTContext &C, TagKind TK, in Create()
146 CXXRecordDecl *
163 CXXRecordDecl *
165 auto *R = new (C, ID) CXXRecordDecl( in CreateDeserialized()
509 void CXXRecordDecl::addedClassSubobject(CXXRecordDecl *Subobj) { in addedClassSubobject()
1803 CXXRecordDecl *CXXRecordDecl::getInstantiatedFromMemberClass() const { in getInstantiatedFromMemberClass()
1815 CXXRecordDecl::setInstantiationOfMemberClass(CXXRecordDecl *RD, in setInstantiationOfMemberClass()
1857 const CXXRecordDecl *CXXRecordDecl::getTemplateInstantiationPattern() const { in getTemplateInstantiationPattern()
[all …]
H A DRecordLayoutBuilder.cpp41 const CXXRecordDecl *Class;
110 const CXXRecordDecl *Class;
482 const CXXRecordDecl *RD, const CXXRecordDecl *Class, CharUnits Offset, in UpdateEmptyFieldSubobjects()
649 const CXXRecordDecl *PrimaryBase;
985 const CXXRecordDecl *RD) { in ComputeBaseSubobjectInfo()
1026 const CXXRecordDecl *RD) { in LayoutNonVirtualBases()
1145 const CXXRecordDecl *RD, const CXXRecordDecl *MostDerivedClass) { in LayoutVirtualBases()
2132 if (const CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(D)) { in FinishLayout()
2877 if (!isa<CXXRecordDecl>(RD)) in recordUsesEBO()
2892 const CXXRecordDecl *RD, in layoutNonVirtualBase()
[all …]
H A DVTTBuilder.cpp32 const CXXRecordDecl *MostDerivedClass, in VTTBuilder()
43 const CXXRecordDecl *VTableClass) { in AddVTablePointer()
60 const CXXRecordDecl *RD = Base.getBase(); in LayoutSecondaryVTTs()
68 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl()); in LayoutSecondaryVTTs()
83 const CXXRecordDecl *VTableClass, in LayoutSecondaryVirtualPointers()
85 const CXXRecordDecl *RD = Base.getBase(); in LayoutSecondaryVirtualPointers()
94 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl()); in LayoutSecondaryVirtualPointers()
154 void VTTBuilder::LayoutVirtualVTTs(const CXXRecordDecl *RD, in LayoutVirtualVTTs()
158 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl()); in LayoutVirtualVTTs()
180 const CXXRecordDecl *RD = Base.getBase(); in LayoutVTT()
H A DMicrosoftCXXABI.cpp111 llvm::SmallDenseMap<CXXRecordDecl *, CXXConstructorDecl *> RecordToCopyCtor;
147 bool isNearlyEmpty(const CXXRecordDecl *RD) const override { in isNearlyEmpty()
152 getCopyConstructorForExceptionObject(CXXRecordDecl *RD) override { in getCopyConstructorForExceptionObject()
157 addCopyConstructorForExceptionObject(CXXRecordDecl *RD, in addCopyConstructorForExceptionObject()
210 static bool usesMultipleInheritanceModel(const CXXRecordDecl *RD) { in usesMultipleInheritanceModel()
215 const CXXRecordDecl *Base = in usesMultipleInheritanceModel()
224 MSInheritanceModel CXXRecordDecl::calculateInheritanceModel() const { in calculateInheritanceModel()
234 MSInheritanceModel CXXRecordDecl::getMSInheritanceModel() const { in getMSInheritanceModel()
240 bool CXXRecordDecl::nullFieldOffsetIsZero() const { in nullFieldOffsetIsZero()
246 MSVtorDispMode CXXRecordDecl::getMSVtorDispMode() const { in getMSVtorDispMode()
[all …]
/llvm-project-15.0.7/clang/include/clang/AST/
H A DVTableBuilder.h27 class CXXRecordDecl; variable
119 const CXXRecordDecl *getRTTIDecl() const { in getRTTIDecl()
371 typedef llvm::DenseMap<const CXXRecordDecl *,
376 typedef std::pair<const CXXRecordDecl *,
449 VPtrInfo(const CXXRecordDecl *RD) in VPtrInfo()
455 const CXXRecordDecl *ObjectWithVPtr;
459 const CXXRecordDecl *IntroducingObject;
473 const CXXRecordDecl *NextBaseToMangle;
490 const CXXRecordDecl *getVBaseWithVPtr() const { in getVBaseWithVPtr()
516 const CXXRecordDecl *VBase;
[all …]
H A DVTTBuilder.h30 class CXXRecordDecl; variable
33 llvm::PointerIntPair<const CXXRecordDecl *, 1, bool> BaseAndIsVirtual;
38 VTTVTable(const CXXRecordDecl *Base, CharUnits BaseOffset, bool BaseIsVirtual) in VTTVTable()
44 const CXXRecordDecl *getBase() const { in getBase()
75 const CXXRecordDecl *MostDerivedClass;
90 using VisitedVirtualBasesSetTy = llvm::SmallPtrSet<const CXXRecordDecl *, 4>;
106 const CXXRecordDecl *VTableClass);
119 const CXXRecordDecl *VTableClass,
129 void LayoutVirtualVTTs(const CXXRecordDecl *RD,
137 VTTBuilder(ASTContext &Ctx, const CXXRecordDecl *MostDerivedClass,
H A DMangle.h105 virtual std::string getLambdaString(const CXXRecordDecl *Lambda) = 0;
184 virtual void mangleCXXVTT(const CXXRecordDecl *RD, raw_ostream &) = 0;
186 const CXXRecordDecl *Type,
228 virtual void mangleCXXVFTable(const CXXRecordDecl *Derived,
229 ArrayRef<const CXXRecordDecl *> BasePath,
235 virtual void mangleCXXVBTable(const CXXRecordDecl *Derived,
236 ArrayRef<const CXXRecordDecl *> BasePath,
247 virtual void mangleCXXVirtualDisplacementMap(const CXXRecordDecl *SrcRD,
267 virtual void mangleCXXRTTIBaseClassArray(const CXXRecordDecl *Derived,
270 mangleCXXRTTIClassHierarchyDescriptor(const CXXRecordDecl *Derived,
[all …]
H A DRecordLayout.h29 class CXXRecordDecl; variable
59 using VBaseOffsetsMapTy = llvm::DenseMap<const CXXRecordDecl *, VBaseInfo>;
132 llvm::PointerIntPair<const CXXRecordDecl *, 1, bool> PrimaryBase;
135 const CXXRecordDecl *BaseSharingVBPtr;
138 using BaseOffsetsMapTy = llvm::DenseMap<const CXXRecordDecl *, CharUnits>;
167 const CXXRecordDecl *PrimaryBase, bool IsPrimaryBaseVirtual,
168 const CXXRecordDecl *BaseSharingVBPtr,
234 const CXXRecordDecl *getPrimaryBase() const { in getPrimaryBase()
249 CharUnits getBaseClassOffset(const CXXRecordDecl *Base) const { in getBaseClassOffset()
259 CharUnits getVBaseClassOffset(const CXXRecordDecl *VBase) const { in getVBaseClassOffset()
[all …]
H A DCXXInheritance.h51 const CXXRecordDecl *Class;
118 friend class CXXRecordDecl; variable
121 const CXXRecordDecl *Origin = nullptr;
142 llvm::SmallPtrSet<const CXXRecordDecl *, 4> VisitedDependentRecords;
166 bool lookupInBases(ASTContext &Context, const CXXRecordDecl *Record,
167 CXXRecordDecl::BaseMatchesCallback BaseMatches,
217 const CXXRecordDecl *getOrigin() const { return Origin; } in getOrigin()
218 void setOrigin(const CXXRecordDecl *Rec) { Origin = Rec; } in setOrigin()
241 const CXXRecordDecl *InVirtualSubobject = nullptr;
246 const CXXRecordDecl *InVirtualSubobject) in UniqueVirtualMethod()
[all …]
H A DBaseSubobject.h25 class CXXRecordDecl; variable
32 const CXXRecordDecl *Base;
39 BaseSubobject(const CXXRecordDecl *Base, CharUnits BaseOffset) in BaseSubobject()
43 const CXXRecordDecl *getBase() const { return Base; } in getBase()
60 DenseMapInfo<const clang::CXXRecordDecl *>::getEmptyKey(),
66 DenseMapInfo<const clang::CXXRecordDecl *>::getTombstoneKey(),
71 using PairTy = std::pair<const clang::CXXRecordDecl *, clang::CharUnits>;
H A DDeclFriend.h62 friend class CXXRecordDecl;
63 friend class CXXRecordDecl::friend_iterator;
187 class CXXRecordDecl::friend_iterator {
188 friend class CXXRecordDecl; variable
239 inline CXXRecordDecl::friend_iterator CXXRecordDecl::friend_begin() const { in friend_begin()
243 inline CXXRecordDecl::friend_iterator CXXRecordDecl::friend_end() const { in friend_end()
247 inline CXXRecordDecl::friend_range CXXRecordDecl::friends() const { in friends()
251 inline void CXXRecordDecl::pushFriendDecl(FriendDecl *FD) { in pushFriendDecl()
H A DDeclCXX.h254 class CXXRecordDecl : public RecordDecl {
334 CXXRecordDecl *Definition;
342 DefinitionData(CXXRecordDecl *D);
509 CXXRecordDecl *getPreviousDecl() { in getPreviousDecl()
510 return cast_or_null<CXXRecordDecl>( in getPreviousDecl()
518 CXXRecordDecl *getMostRecentDecl() { in getMostRecentDecl()
519 return cast<CXXRecordDecl>( in getMostRecentDecl()
528 CXXRecordDecl *Recent = in getMostRecentNonInjectedDecl()
1497 return const_cast<CXXRecordDecl *>(const_cast<const CXXRecordDecl *>(this) in getTemplateInstantiationPattern()
2102 CXXRecordDecl *getParent() { in getParent()
[all …]
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaAccess.cpp73 CXXRecordDecl *DeclaringClass = cast<CXXRecordDecl>(DC); in FindDeclaringClass()
120 if (isa<CXXRecordDecl>(DC)) { in EffectiveContext()
121 CXXRecordDecl *Record = cast<CXXRecordDecl>(DC); in EffectiveContext()
312 const CXXRecordDecl *RD; in IsDerivedFromInclusive()
460 CXXRecordDecl *Record = *I; in MatchesFriend()
575 if (isa<CXXRecordDecl>(Friend)) in MatchesFriend()
613 const CXXRecordDecl *NamingClass;
665 const CXXRecordDecl *RD; in findFriendship()
1519 CXXRecordDecl *NamingClass = cast<CXXRecordDecl>(NamingD); in HandleDependentAccessCheck()
1690 CXXRecordDecl *ObjectClass; in CheckConstructorAccess()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/fuchsia/
H A DMultipleInheritanceCheck.cpp21 AST_MATCHER(CXXRecordDecl, hasBases) { in AST_MATCHER() argument
30 void MultipleInheritanceCheck::addNodeToInterfaceMap(const CXXRecordDecl *Node, in addNodeToInterfaceMap()
40 bool MultipleInheritanceCheck::getInterfaceStatus(const CXXRecordDecl *Node, in getInterfaceStatus()
52 const CXXRecordDecl *Node) const { in isCurrentClassInterface()
62 bool MultipleInheritanceCheck::isInterface(const CXXRecordDecl *Node) { in isInterface()
78 const auto *Base = cast<CXXRecordDecl>(D); in isInterface()
97 if (const auto *D = Result.Nodes.getNodeAs<CXXRecordDecl>("decl")) { in check()
105 const auto *Base = cast<CXXRecordDecl>(Ty->getDecl()->getDefinition()); in check()
114 const auto *Base = cast<CXXRecordDecl>(Ty->getDecl()->getDefinition()); in check()
H A DMultipleInheritanceCheck.h35 void addNodeToInterfaceMap(const CXXRecordDecl *Node, bool IsInterface);
36 bool getInterfaceStatus(const CXXRecordDecl *Node, bool &IsInterface) const;
37 bool isCurrentClassInterface(const CXXRecordDecl *Node) const;
38 bool isInterface(const CXXRecordDecl *Node);
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGVTables.h25 class CXXRecordDecl; variable
40 typedef std::pair<const CXXRecordDecl *, BaseSubobject> BaseSubobjectPairTy;
111 uint64_t getSubVTTIndex(const CXXRecordDecl *RD, BaseSubobject Base);
115 uint64_t getSecondaryVirtualPointerIndex(const CXXRecordDecl *RD,
121 GenerateConstructionVTable(const CXXRecordDecl *RD, const BaseSubobject &Base,
128 llvm::GlobalVariable *GetAddrOfVTT(const CXXRecordDecl *RD);
133 const CXXRecordDecl *RD);
142 void GenerateClassData(const CXXRecordDecl *RD);
144 bool isVTableExternal(const CXXRecordDecl *RD);
H A DCGCXXABI.h33 class CXXRecordDecl; variable
159 virtual RecordArgABI getRecordArgABI(const CXXRecordDecl *RD) const = 0;
168 isPermittedToBeHomogeneousAggregate(const CXXRecordDecl *RD) const { in isPermittedToBeHomogeneousAggregate()
305 const CXXRecordDecl *RD) {} in initializeHiddenVirtualInheritanceMembers()
372 virtual const CXXRecordDecl *
437 const CXXRecordDecl *RD) = 0;
450 const CXXRecordDecl *VTableClass) = 0;
457 const CXXRecordDecl *NearestVBase) = 0;
467 virtual llvm::GlobalVariable *getAddrOfVTable(const CXXRecordDecl *RD,
648 virtual std::pair<llvm::Value *, const CXXRecordDecl *>
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DTypeHierarchyTests.cpp146 const CXXRecordDecl *Parent = in TEST()
148 const CXXRecordDecl *Child1 = in TEST()
150 const CXXRecordDecl *Child2 = in TEST()
186 const CXXRecordDecl *Child = dyn_cast<CXXRecordDecl>(&findDecl(AST, "Child")); in TEST()
205 const CXXRecordDecl *Parent = in TEST()
207 const CXXRecordDecl *Child = in TEST()
253 const CXXRecordDecl *Parent = in TEST()
257 const CXXRecordDecl *Child1 = in TEST()
259 const CXXRecordDecl *Child2 = in TEST()
280 const CXXRecordDecl *Parent = in TEST()
[all …]
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DPtrTypesSemantics.cpp22 bool hasPublicRefAndDeref(const CXXRecordDecl *R) { in hasPublicRefAndDeref()
48 llvm::Optional<const clang::CXXRecordDecl *>
56 const CXXRecordDecl *R = T->getAsCXXRecordDecl(); in isRefCountable()
65 llvm::Optional<bool> isRefCountable(const CXXRecordDecl *R) { in isRefCountable()
76 Paths.setOrigin(const_cast<CXXRecordDecl *>(R)); in isRefCountable()
81 Optional<const clang::CXXRecordDecl *> IsRefCountable = in isRefCountable()
115 llvm::Optional<bool> isUncounted(const CXXRecordDecl *Class) { in isUncounted()
142 const CXXRecordDecl *calleeMethodsClass = M->getParent(); in isGetterOfRefCounted()
168 bool isRefCounted(const CXXRecordDecl *R) { in isRefCounted()
H A DPtrTypesSemantics.h17 class CXXRecordDecl; variable
30 llvm::Optional<const clang::CXXRecordDecl *>
35 llvm::Optional<bool> isRefCountable(const clang::CXXRecordDecl *Class);
38 bool isRefCounted(const clang::CXXRecordDecl *Class);
42 llvm::Optional<bool> isUncounted(const clang::CXXRecordDecl *Class);
H A DRefCntblBaseVirtualDtorChecker.cpp51 bool VisitCXXRecordDecl(const CXXRecordDecl *RD) { in checkASTDecl()
61 void visitCXXRecordDecl(const CXXRecordDecl *RD) const { in visitCXXRecordDecl()
69 const CXXRecordDecl *ProblematicBaseClass = nullptr; in visitCXXRecordDecl()
79 llvm::Optional<const CXXRecordDecl *> RefCntblBaseRD = in visitCXXRecordDecl()
100 bool shouldSkipDecl(const CXXRecordDecl *RD) const { in shouldSkipDecl()
128 void reportBug(const CXXRecordDecl *DerivedClass, in reportBug()
130 const CXXRecordDecl *ProblematicBaseClass) const { in reportBug()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DParentVirtualCallCheck.cpp24 using BasesVector = llvm::SmallVector<const CXXRecordDecl *, 5>;
26 static bool isParentOf(const CXXRecordDecl &Parent, in isParentOf()
27 const CXXRecordDecl &ThisClass) { in isParentOf()
30 const CXXRecordDecl *ParentCanonicalDecl = Parent.getCanonicalDecl(); in isParentOf()
39 static BasesVector getParentsByGrandParent(const CXXRecordDecl &GrandParent, in getParentsByGrandParent()
40 const CXXRecordDecl &ThisClass, in getParentsByGrandParent()
53 const CXXRecordDecl *RecordDeclType = TypePtr->getPointeeCXXRecordDecl(); in getParentsByGrandParent()
131 for (const CXXRecordDecl *Parent : Parents) { in check()
/llvm-project-15.0.7/clang/test/PCH/
H A Dcxx-chain-function-template.cpp6 struct CXXRecordDecl { CXXRecordDecl(int); }; struct
22 cast<CXXRecordDecl>(1.0f); in test2()
28 cast<CXXRecordDecl>(1.0f); in test3()

12345678910>>...15