Home
last modified time | relevance | path

Searched refs:BaseDecl (Results 1 – 15 of 15) sorted by relevance

/external/clang/lib/AST/
DVTTBuilder.cpp64 const CXXRecordDecl *BaseDecl = in LayoutSecondaryVTTs() local
69 Layout.getBaseClassOffset(BaseDecl); in LayoutSecondaryVTTs()
72 LayoutVTT(BaseSubobject(BaseDecl, BaseOffset), /*BaseIsVirtual=*/false); in LayoutSecondaryVTTs()
90 const CXXRecordDecl *BaseDecl = in LayoutSecondaryVirtualPointers() local
100 if (!BaseDecl->isDynamicClass()) in LayoutSecondaryVirtualPointers()
108 if (!VBases.insert(BaseDecl)) in LayoutSecondaryVirtualPointers()
111 BaseOffset = MostDerivedClassLayout.getVBaseClassOffset(BaseDecl); in LayoutSecondaryVirtualPointers()
117 Layout.getBaseClassOffset(BaseDecl); in LayoutSecondaryVirtualPointers()
120 Layout.getPrimaryBase() == BaseDecl) in LayoutSecondaryVirtualPointers()
130 (BaseDecl->getNumVBases() || BaseDeclIsMorallyVirtual)) { in LayoutSecondaryVirtualPointers()
[all …]
DRecordLayoutBuilder.cpp144 const CXXRecordDecl *BaseDecl = I.getType()->getAsCXXRecordDecl(); in ComputeEmptySubobjectSizes() local
147 const ASTRecordLayout &Layout = Context.getASTRecordLayout(BaseDecl); in ComputeEmptySubobjectSizes()
148 if (BaseDecl->isEmpty()) { in ComputeEmptySubobjectSizes()
351 const CXXRecordDecl *BaseDecl = I.getType()->getAsCXXRecordDecl(); in CanPlaceFieldSubobjectAtOffset() local
353 CharUnits BaseOffset = Offset + Layout.getBaseClassOffset(BaseDecl); in CanPlaceFieldSubobjectAtOffset()
354 if (!CanPlaceFieldSubobjectAtOffset(BaseDecl, Class, BaseOffset)) in CanPlaceFieldSubobjectAtOffset()
457 const CXXRecordDecl *BaseDecl = I.getType()->getAsCXXRecordDecl(); in UpdateEmptyFieldSubobjects() local
459 CharUnits BaseOffset = Offset + Layout.getBaseClassOffset(BaseDecl); in UpdateEmptyFieldSubobjects()
460 UpdateEmptyFieldSubobjects(BaseDecl, Class, BaseOffset); in UpdateEmptyFieldSubobjects()
905 const CXXRecordDecl *BaseDecl = I.getType()->getAsCXXRecordDecl(); in ComputeBaseSubobjectInfo() local
[all …]
DCXXInheritance.cpp498 const CXXRecordDecl *BaseDecl = cast<CXXRecordDecl>(RT->getDecl()); in Collect() local
499 if (!BaseDecl->isPolymorphic()) in Collect()
505 Collect(BaseDecl, false, InVirtualSubobject, Overriders); in Collect()
517 CXXFinalOverriderMap *&MyVirtualOverriders = VirtualOverriders[BaseDecl]; in Collect()
527 Collect(BaseDecl, true, BaseDecl, *MyVirtualOverriders); in Collect()
530 Collect(BaseDecl, false, InVirtualSubobject, ComputedBaseOverriders); in Collect()
697 const CXXRecordDecl *BaseDecl = in AddIndirectPrimaryBases() local
702 if (BaseDecl->getNumVBases()) in AddIndirectPrimaryBases()
703 AddIndirectPrimaryBases(BaseDecl, Context, Bases); in AddIndirectPrimaryBases()
719 const CXXRecordDecl *BaseDecl = in getIndirectPrimaryBases() local
[all …]
DVTableBuilder.cpp348 const CXXRecordDecl *BaseDecl = B.getType()->getAsCXXRecordDecl(); in ComputeBaseOffsets() local
354 if (SubobjectOffsets.count(std::make_pair(BaseDecl, 0))) in ComputeBaseOffsets()
360 BaseOffset = MostDerivedClassLayout.getVBaseClassOffset(BaseDecl); in ComputeBaseOffsets()
362 LayoutClassLayout.getVBaseClassOffset(BaseDecl); in ComputeBaseOffsets()
365 CharUnits Offset = Layout.getBaseClassOffset(BaseDecl); in ComputeBaseOffsets()
371 ComputeBaseOffsets(BaseSubobject(BaseDecl, BaseOffset), in ComputeBaseOffsets()
384 const CXXRecordDecl *BaseDecl = B.getType()->getAsCXXRecordDecl(); in dump() local
387 if (!BaseDecl->isPolymorphic()) in dump()
392 if (!VisitedVirtualBases.insert(BaseDecl)) { in dump()
397 BaseOffset = MostDerivedClassLayout.getVBaseClassOffset(BaseDecl); in dump()
[all …]
DDeclCXX.cpp1337 CXXRecordDecl *BaseDecl in mayBeAbstract() local
1339 if (BaseDecl->isAbstract()) in mayBeAbstract()
DExprConstant.cpp1799 const CXXRecordDecl *BaseDecl = Base->getType()->getAsCXXRecordDecl(); in HandleLValueBase() local
1802 return HandleLValueDirectBase(Info, E, Obj, DerivedDecl, BaseDecl); in HandleLValueBase()
1816 Obj.getLValueOffset() += Layout.getVBaseClassOffset(BaseDecl); in HandleLValueBase()
1817 Obj.addDecl(Info, E, BaseDecl, /*Virtual*/ true); in HandleLValueBase()
/external/clang/lib/CodeGen/
DCGRecordLayoutBuilder.cpp418 const CXXRecordDecl *BaseDecl = Layout.getPrimaryBase(); in accumulateBases() local
420 getStorageType(BaseDecl), BaseDecl)); in accumulateBases()
426 const CXXRecordDecl *BaseDecl = Base.getType()->getAsCXXRecordDecl(); in accumulateBases() local
427 if (!BaseDecl->isEmpty()) in accumulateBases()
428 Members.push_back(MemberInfo(Layout.getBaseClassOffset(BaseDecl), in accumulateBases()
429 MemberInfo::Base, getStorageType(BaseDecl), BaseDecl)); in accumulateBases()
451 const CXXRecordDecl *BaseDecl = Base.getType()->getAsCXXRecordDecl(); in accumulateVBases() local
452 if (BaseDecl->isEmpty()) in accumulateVBases()
456 if (Context.isNearlyEmpty(BaseDecl) && !hasOwnStorage(RD, BaseDecl)) in accumulateVBases()
459 Layout.getVBaseClassOffset(BaseDecl)); in accumulateVBases()
[all …]
DCGClass.cpp47 const CXXRecordDecl *BaseDecl = in ComputeNonVirtualBaseClassOffset() local
51 Offset += Layout.getBaseClassOffset(BaseDecl); in ComputeNonVirtualBaseClassOffset()
53 RD = BaseDecl; in ComputeNonVirtualBaseClassOffset()
1924 CXXRecordDecl *BaseDecl in InitializeVTablePointers() local
1928 if (!BaseDecl->isDynamicClass()) in InitializeVTablePointers()
1937 if (!VBases.insert(BaseDecl)) in InitializeVTablePointers()
1943 BaseOffset = Layout.getVBaseClassOffset(BaseDecl); in InitializeVTablePointers()
1949 BaseOffset = Base.getBaseOffset() + Layout.getBaseClassOffset(BaseDecl); in InitializeVTablePointers()
1951 OffsetFromNearestVBase + Layout.getBaseClassOffset(BaseDecl); in InitializeVTablePointers()
1952 BaseDeclIsNonVirtualPrimaryBase = Layout.getPrimaryBase() == BaseDecl; in InitializeVTablePointers()
[all …]
DItaniumCXXABI.cpp2298 const CXXRecordDecl *BaseDecl = in CanUseSingleInheritance() local
2300 if (!BaseDecl->isEmpty() && in CanUseSingleInheritance()
2301 BaseDecl->isDynamicClass() != RD->isDynamicClass()) in CanUseSingleInheritance()
2724 const CXXRecordDecl *BaseDecl = in ComputeVMIClassTypeInfoFlags() local
2729 if (!Bases.VirtualBases.insert(BaseDecl)) { in ComputeVMIClassTypeInfoFlags()
2734 if (Bases.NonVirtualBases.count(BaseDecl)) in ComputeVMIClassTypeInfoFlags()
2739 if (!Bases.NonVirtualBases.insert(BaseDecl)) { in ComputeVMIClassTypeInfoFlags()
2744 if (Bases.VirtualBases.count(BaseDecl)) in ComputeVMIClassTypeInfoFlags()
2750 for (const auto &I : BaseDecl->bases()) in ComputeVMIClassTypeInfoFlags()
2813 const CXXRecordDecl *BaseDecl = in BuildVMIClassTypeInfo() local
[all …]
DCGExprConstant.cpp1282 const CXXRecordDecl *BaseDecl = in FillInNullDataMemberPointers() local
1286 if (BaseDecl->isEmpty()) in FillInNullDataMemberPointers()
1290 if (CGM.getTypes().isZeroInitializable(BaseDecl)) in FillInNullDataMemberPointers()
1294 CGM.getContext().toBits(Layout.getBaseClassOffset(BaseDecl)); in FillInNullDataMemberPointers()
/external/clang/lib/StaticAnalyzer/Core/
DStore.cpp280 const CXXRecordDecl *BaseDecl = BaseType->getPointeeCXXRecordDecl(); in evalDerivedToBase() local
281 if (!BaseDecl) in evalDerivedToBase()
282 BaseDecl = BaseType->getAsCXXRecordDecl(); in evalDerivedToBase()
283 assert(BaseDecl && "not a C++ object?"); in evalDerivedToBase()
286 MRMgr.getCXXBaseObjectRegion(BaseDecl, DerivedRegVal->getRegion(), in evalDerivedToBase()
/external/clang/test/SemaCXX/
Dtypo-correction.cpp113 struct BaseDecl { struct
116 struct TestRedecl : public BaseDecl {
/external/clang/lib/Sema/
DSemaLookup.cpp2081 CXXRecordDecl *BaseDecl = cast<CXXRecordDecl>(BaseType->getDecl()); in addAssociatedClassesAndNamespaces() local
2082 if (Result.Classes.insert(BaseDecl)) { in addAssociatedClassesAndNamespaces()
2084 DeclContext *BaseCtx = BaseDecl->getDeclContext(); in addAssociatedClassesAndNamespaces()
2088 if (BaseDecl->bases_begin() != BaseDecl->bases_end()) in addAssociatedClassesAndNamespaces()
2089 Bases.push_back(BaseDecl); in addAssociatedClassesAndNamespaces()
DSemaDeclCXX.cpp1383 if (CXXRecordDecl *BaseDecl = BaseType->getAsCXXRecordDecl()) { in CheckBaseSpecifier() local
1384 if (BaseDecl->getCanonicalDecl() == Class->getCanonicalDecl() || in CheckBaseSpecifier()
1385 ((BaseDecl = BaseDecl->getDefinition()) && in CheckBaseSpecifier()
1386 findCircularInheritance(Class, BaseDecl))) { in CheckBaseSpecifier()
1390 if (BaseDecl->getCanonicalDecl() != Class->getCanonicalDecl()) in CheckBaseSpecifier()
1391 Diag(BaseDecl->getLocation(), diag::note_previous_decl) in CheckBaseSpecifier()
1437 RecordDecl *BaseDecl = BaseType->getAs<RecordType>()->getDecl(); in CheckBaseSpecifier() local
1438 assert(BaseDecl && "Record type has no declaration"); in CheckBaseSpecifier()
1439 BaseDecl = BaseDecl->getDefinition(); in CheckBaseSpecifier()
1440 assert(BaseDecl && "Base type is not incomplete, but has no definition"); in CheckBaseSpecifier()
[all …]
DSemaInit.cpp6689 RecordDecl *BaseDecl in Diagnose() local
6692 S.Diag(BaseDecl->getLocation(), diag::note_previous_decl) in Diagnose()
6693 << S.Context.getTagDeclType(BaseDecl); in Diagnose()