Searched refs:CXXRecordDecl (Results 1 - 25 of 199) sorted by relevance

12345678

/external/clang/test/PCH/
H A Dcxx-chain-function-template.cpp6 struct CXXRecordDecl { CXXRecordDecl(int); }; struct
22 cast<CXXRecordDecl>(1.0f);
28 cast<CXXRecordDecl>(1.0f);
/external/clang/lib/CodeGen/
H A DCGVTables.h26 class CXXRecordDecl;
39 typedef std::pair<const CXXRecordDecl *, BaseSubobject> BaseSubobjectPairTy;
65 const CXXRecordDecl *RD, const VTableComponent *Components,
81 uint64_t getSubVTTIndex(const CXXRecordDecl *RD, BaseSubobject Base);
85 uint64_t getSecondaryVirtualPointerIndex(const CXXRecordDecl *RD,
90 uint64_t getAddressPoint(BaseSubobject Base, const CXXRecordDecl *RD);
95 GenerateConstructionVTable(const CXXRecordDecl *RD, const BaseSubobject &Base,
102 llvm::GlobalVariable *GetAddrOfVTT(const CXXRecordDecl *RD);
107 const CXXRecordDecl *RD);
116 void GenerateClassData(const CXXRecordDecl *R
[all...]
H A DCGRecordLayout.h134 llvm::DenseMap<const CXXRecordDecl *, unsigned> NonVirtualBases;
137 llvm::DenseMap<const CXXRecordDecl *, unsigned> CompleteObjectVirtualBases;
191 unsigned getNonVirtualBaseLLVMFieldNo(const CXXRecordDecl *RD) const {
198 unsigned getVirtualBaseIndex(const CXXRecordDecl *base) const {
/external/clang/include/clang/AST/
H A DBaseSubobject.h23 class CXXRecordDecl;
30 const CXXRecordDecl *Base;
37 BaseSubobject(const CXXRecordDecl *Base, CharUnits BaseOffset)
41 const CXXRecordDecl *getBase() const { return Base; }
58 DenseMapInfo<const clang::CXXRecordDecl *>::getEmptyKey(),
64 DenseMapInfo<const clang::CXXRecordDecl *>::getTombstoneKey(),
69 typedef std::pair<const clang::CXXRecordDecl *, clang::CharUnits> PairTy;
H A DVTTBuilder.h29 llvm::PointerIntPair<const CXXRecordDecl *, 1, bool> BaseAndIsVirtual;
34 VTTVTable(const CXXRecordDecl *Base, CharUnits BaseOffset, bool BaseIsVirtual)
40 const CXXRecordDecl *getBase() const {
72 const CXXRecordDecl *MostDerivedClass;
87 typedef llvm::SmallPtrSet<const CXXRecordDecl *, 4> VisitedVirtualBasesSetTy;
103 const CXXRecordDecl *VTableClass);
116 const CXXRecordDecl *VTableClass,
126 void LayoutVirtualVTTs(const CXXRecordDecl *RD,
134 VTTBuilder(ASTContext &Ctx, const CXXRecordDecl *MostDerivedClass,
H A DVTableBuilder.h28 class CXXRecordDecl;
68 static VTableComponent MakeRTTI(const CXXRecordDecl *RD) {
124 const CXXRecordDecl *getRTTIDecl() const {
127 return reinterpret_cast<CXXRecordDecl *>(getPointer());
286 virtual void computeVTableRelatedInformation(const CXXRecordDecl *RD) = 0;
317 typedef llvm::DenseMap<const CXXRecordDecl *, const VTableLayout *>
321 typedef std::pair<const CXXRecordDecl *,
322 const CXXRecordDecl *> ClassPairTy;
332 void computeVTableRelatedInformation(const CXXRecordDecl *RD) override;
338 const VTableLayout &getVTableLayout(const CXXRecordDecl *R
[all...]
H A DCXXInheritance.h33 class CXXRecordDecl;
50 const CXXRecordDecl *Class;
119 CXXRecordDecl *Origin;
161 friend class CXXRecordDecl;
166 const CXXRecordDecl *Record,
167 CXXRecordDecl::BaseMatchesCallback *BaseMatches,
221 CXXRecordDecl *getOrigin() const { return Origin; }
222 void setOrigin(CXXRecordDecl *Rec) { Origin = Rec; }
239 const CXXRecordDecl *InVirtualSubobject)
253 const CXXRecordDecl *InVirtualSubobjec
[all...]
H A DDeclFriend.h73 friend class CXXRecordDecl::friend_iterator;
74 friend class CXXRecordDecl;
173 class CXXRecordDecl::friend_iterator {
176 friend class CXXRecordDecl;
210 assert(N >= 0 && "cannot rewind a CXXRecordDecl::friend_iterator");
223 inline CXXRecordDecl::friend_iterator CXXRecordDecl::friend_begin() const {
227 inline CXXRecordDecl::friend_iterator CXXRecordDecl::friend_end() const {
231 inline CXXRecordDecl
[all...]
H A DRecordLayout.h25 class CXXRecordDecl;
56 typedef llvm::DenseMap<const CXXRecordDecl *, VBaseInfo>
117 llvm::PointerIntPair<const CXXRecordDecl *, 1, bool> PrimaryBase;
120 const CXXRecordDecl *BaseSharingVBPtr;
123 typedef llvm::DenseMap<const CXXRecordDecl *, CharUnits> BaseOffsetsMapTy;
154 const CXXRecordDecl *PrimaryBase,
156 const CXXRecordDecl *BaseSharingVBPtr,
209 const CXXRecordDecl *getPrimaryBase() const {
224 CharUnits getBaseClassOffset(const CXXRecordDecl *Base) const {
232 CharUnits getVBaseClassOffset(const CXXRecordDecl *VBas
[all...]
H A DMangle.h149 virtual void mangleCXXVTable(const CXXRecordDecl *RD, raw_ostream &) = 0;
150 virtual void mangleCXXVTT(const CXXRecordDecl *RD, raw_ostream &) = 0;
151 virtual void mangleCXXCtorVTable(const CXXRecordDecl *RD, int64_t Offset,
152 const CXXRecordDecl *Type,
175 virtual void mangleCXXVFTable(const CXXRecordDecl *Derived,
176 ArrayRef<const CXXRecordDecl *> BasePath,
182 virtual void mangleCXXVBTable(const CXXRecordDecl *Derived,
183 ArrayRef<const CXXRecordDecl *> BasePath,
190 const CXXRecordDecl *Derived, uint32_t NVOffset, int32_t VBPtrOffset,
193 virtual void mangleCXXRTTIBaseClassArray(const CXXRecordDecl *Derive
[all...]
/external/clang/lib/AST/
H A DCXXInheritance.cpp76 bool CXXRecordDecl::isDerivedFrom(const CXXRecordDecl *Base) const {
82 bool CXXRecordDecl::isDerivedFrom(const CXXRecordDecl *Base,
87 Paths.setOrigin(const_cast<CXXRecordDecl*>(this));
89 const_cast<CXXRecordDecl*>(Base->getCanonicalDecl()),
93 bool CXXRecordDecl::isVirtuallyDerivedFrom(const CXXRecordDecl *Base) const {
103 Paths.setOrigin(const_cast<CXXRecordDecl*>(this));
111 static bool BaseIsNot(const CXXRecordDecl *Bas
[all...]
H A DVTTBuilder.cpp29 const CXXRecordDecl *MostDerivedClass,
40 const CXXRecordDecl *VTableClass) {
57 const CXXRecordDecl *RD = Base.getBase();
64 const CXXRecordDecl *BaseDecl =
65 cast<CXXRecordDecl>(I.getType()->getAs<RecordType>()->getDecl());
80 const CXXRecordDecl *VTableClass,
82 const CXXRecordDecl *RD = Base.getBase();
90 const CXXRecordDecl *BaseDecl =
91 cast<CXXRecordDecl>(I.getType()->getAs<RecordType>()->getDecl());
151 void VTTBuilder::LayoutVirtualVTTs(const CXXRecordDecl *R
[all...]
H A DDeclFriend.cpp36 isa<CXXRecordDecl>(D) ||
43 (cast<CXXRecordDecl>(DC)->getTemplateSpecializationKind()));
52 cast<CXXRecordDecl>(DC)->pushFriendDecl(FD);
62 FriendDecl *CXXRecordDecl::getFirstFriend() const {
H A DCXXABI.h40 virtual bool isNearlyEmpty(const CXXRecordDecl *RD) const = 0;
H A DRecordLayoutBuilder.cpp42 const CXXRecordDecl *Class;
65 const CXXRecordDecl *Class;
68 typedef llvm::TinyPtrVector<const CXXRecordDecl *> ClassVectorTy;
80 void AddSubobjectAtOffset(const CXXRecordDecl *RD, CharUnits Offset);
85 void UpdateEmptyFieldSubobjects(const CXXRecordDecl *RD,
86 const CXXRecordDecl *Class,
106 bool CanPlaceSubobjectAtOffset(const CXXRecordDecl *RD,
112 bool CanPlaceFieldSubobjectAtOffset(const CXXRecordDecl *RD,
113 const CXXRecordDecl *Class,
124 EmptySubobjectMap(const ASTContext &Context, const CXXRecordDecl *Clas
[all...]
H A DMicrosoftCXXABI.cpp58 bool isNearlyEmpty(const CXXRecordDecl *RD) const override {
81 static bool usesMultipleInheritanceModel(const CXXRecordDecl *RD) {
86 const CXXRecordDecl *Base =
95 MSInheritanceAttr::Spelling CXXRecordDecl::calculateInheritanceModel() const {
106 CXXRecordDecl::getMSInheritanceModel() const {
108 assert(IA && "Expected MSInheritanceAttr on the CXXRecordDecl!");
112 MSVtorDispAttr::Mode CXXRecordDecl::getMSVtorDispMode() const {
148 const CXXRecordDecl *RD = MPT->getMostRecentCXXRecordDecl();
H A DDeclCXX.cpp48 CXXRecordDecl::DefinitionData::DefinitionData(CXXRecordDecl *D)
78 CXXBaseSpecifier *CXXRecordDecl::DefinitionData::getBasesSlowCase() const {
82 CXXBaseSpecifier *CXXRecordDecl::DefinitionData::getVBasesSlowCase() const {
86 CXXRecordDecl::CXXRecordDecl(Kind K, TagKind TK, const ASTContext &C, function in class:CXXRecordDecl
89 CXXRecordDecl *PrevDecl)
95 CXXRecordDecl *CXXRecordDecl::Create(const ASTContext &C, TagKind TK,
98 CXXRecordDecl* PrevDec
[all...]
/external/chromium_org/tools/clang/plugins/
H A DFindBadConstructsConsumer.h40 clang::CXXRecordDecl* record);
49 clang::CXXRecordDecl* record);
59 clang::CXXRecordDecl* record,
68 const clang::CXXRecordDecl* record,
80 clang::CXXRecordDecl* record);
83 clang::CXXRecordDecl* record);
H A DFindBadConstructsConsumer.cpp45 if (const CXXRecordDecl* cxx_r = type->getPointeeCXXRecordDecl())
95 CXXRecordDecl* record) {
157 CXXRecordDecl* record) {
170 for (CXXRecordDecl::base_class_const_iterator it = record->bases_begin();
219 for (CXXRecordDecl::ctor_iterator it = record->ctor_begin();
342 CXXRecordDecl* record,
344 for (CXXRecordDecl::field_iterator it = record->field_begin();
347 CXXRecordDecl* record_type = it->getTypeSourceInfo()
358 for (CXXRecordDecl::method_iterator it = record->method_begin();
440 const CXXRecordDecl* recor
[all...]
/external/clang/include/clang/Frontend/
H A DLayoutOverrideSource.h54 llvm::DenseMap<const CXXRecordDecl *, CharUnits> &BaseOffsets,
55 llvm::DenseMap<const CXXRecordDecl *,
/external/chromium_org/tools/clang/blink_gc_plugin/
H A DRecordInfo.h5 // This file provides a wrapper for CXXRecordDecl that accumulates GC related
71 typedef std::map<clang::CXXRecordDecl*, BasePoint> Bases;
77 clang::CXXRecordDecl* record() const { return record_; }
104 RecordInfo(clang::CXXRecordDecl* record, RecordCache* cache);
114 clang::CXXRecordDecl* record_;
139 RecordInfo* Lookup(clang::CXXRecordDecl* record);
141 RecordInfo* Lookup(const clang::CXXRecordDecl* record) {
142 return Lookup(const_cast<clang::CXXRecordDecl*>(record));
146 return Lookup(clang::dyn_cast<clang::CXXRecordDecl>(decl));
170 typedef std::map<clang::CXXRecordDecl*, RecordInf
[all...]
/external/clang/include/clang/CodeGen/
H A DCodeGenABITypes.h38 class CXXRecordDecl;
63 const CGFunctionInfo &arrangeCXXMethodType(const CXXRecordDecl *RD,
/external/clang/lib/Sema/
H A DSemaAccess.cpp65 static CXXRecordDecl *FindDeclaringClass(NamedDecl *D) {
73 CXXRecordDecl *DeclaringClass = cast<CXXRecordDecl>(DC);
75 DeclaringClass = cast<CXXRecordDecl>(DeclaringClass->getDeclContext());
106 if (isa<CXXRecordDecl>(DC)) {
107 CXXRecordDecl *Record = cast<CXXRecordDecl>(DC);
127 bool includesClass(const CXXRecordDecl *R) const {
139 typedef SmallVectorImpl<CXXRecordDecl*>::const_iterator record_iterator;
143 SmallVector<CXXRecordDecl*,
[all...]
/external/clang/include/clang/Sema/
H A DExternalSemaSource.h26 class CXXRecordDecl;
40 CXXRecordDecl *Record;
133 virtual void ReadDynamicClasses(SmallVectorImpl<CXXRecordDecl *> &Decls) {}
/external/lldb/include/lldb/Symbol/
H A DClangExternalASTSourceCallbacks.h42 llvm::DenseMap <const clang::CXXRecordDecl *, clang::CharUnits> &BaseOffsets,
43 llvm::DenseMap <const clang::CXXRecordDecl *, clang::CharUnits> &VirtualBaseOffsets);
130 llvm::DenseMap <const clang::CXXRecordDecl *, clang::CharUnits> &BaseOffsets,
131 llvm::DenseMap <const clang::CXXRecordDecl *, clang::CharUnits> &VirtualBaseOffsets);

Completed in 2893 milliseconds

12345678