Home
last modified time | relevance | path

Searched refs:getAsCXXRecordDecl (Results 1 – 25 of 63) sorted by relevance

123

/external/clang/lib/AST/
DRecordLayoutBuilder.cpp144 const CXXRecordDecl *BaseDecl = I.getType()->getAsCXXRecordDecl(); in ComputeEmptySubobjectSizes()
170 const CXXRecordDecl *MemberDecl = RT->getAsCXXRecordDecl(); in ComputeEmptySubobjectSizes()
351 const CXXRecordDecl *BaseDecl = I.getType()->getAsCXXRecordDecl(); in CanPlaceFieldSubobjectAtOffset()
361 const CXXRecordDecl *VBaseDecl = I.getType()->getAsCXXRecordDecl(); in CanPlaceFieldSubobjectAtOffset()
394 if (const CXXRecordDecl *RD = T->getAsCXXRecordDecl()) in CanPlaceFieldSubobjectAtOffset()
404 const CXXRecordDecl *RD = RT->getAsCXXRecordDecl(); in CanPlaceFieldSubobjectAtOffset()
457 const CXXRecordDecl *BaseDecl = I.getType()->getAsCXXRecordDecl(); in UpdateEmptyFieldSubobjects()
466 const CXXRecordDecl *VBaseDecl = I.getType()->getAsCXXRecordDecl(); in UpdateEmptyFieldSubobjects()
489 if (const CXXRecordDecl *RD = T->getAsCXXRecordDecl()) { in UpdateEmptyFieldSubobjects()
501 const CXXRecordDecl *RD = RT->getAsCXXRecordDecl(); in UpdateEmptyFieldSubobjects()
[all …]
DVTableBuilder.cpp234 VirtualBase = VBaseType->getAsCXXRecordDecl(); in ComputeBaseOffset()
246 const CXXRecordDecl *Base = Element.Base->getType()->getAsCXXRecordDecl(); in ComputeBaseOffset()
348 const CXXRecordDecl *BaseDecl = B.getType()->getAsCXXRecordDecl(); in ComputeBaseOffsets()
384 const CXXRecordDecl *BaseDecl = B.getType()->getAsCXXRecordDecl(); in dump()
727 const CXXRecordDecl *BaseDecl = B.getType()->getAsCXXRecordDecl(); in AddVCallOffsets()
748 const CXXRecordDecl *BaseDecl = B.getType()->getAsCXXRecordDecl(); in AddVBaseOffsets()
1766 const CXXRecordDecl *BaseDecl = B.getType()->getAsCXXRecordDecl(); in LayoutSecondaryVTables()
1840 const CXXRecordDecl *BaseDecl = B.getType()->getAsCXXRecordDecl(); in DeterminePrimaryVirtualBases()
1869 const CXXRecordDecl *BaseDecl = B.getType()->getAsCXXRecordDecl(); in LayoutVTablesForVirtualBases()
2352 RD->vbases_begin()->getType()->getAsCXXRecordDecl(); in computeVTableRelatedInformation()
[all …]
DExprCXX.cpp36 if (const CXXRecordDecl *RD = E->getType()->getAsCXXRecordDecl()) in isPotentiallyEvaluated()
68 CXXRecordDecl *RD = Ty->getAsCXXRecordDecl(); in GetUuidAttrOfType()
565 return ThisArg->getType()->getPointeeType()->getAsCXXRecordDecl(); in getRecordDecl()
567 return ThisArg->getType()->getAsCXXRecordDecl(); in getRecordDecl()
1077 return getType()->getAsCXXRecordDecl(); in getLambdaClass()
1401 Record = T->getAsCXXRecordDecl(); in getNamingClass()
1413 Record = BaseType->getAsCXXRecordDecl(); in getNamingClass()
DMicrosoftCXXABI.cpp87 RD->bases_begin()->getType()->getAsCXXRecordDecl(); in usesMultipleInheritanceModel()
DExprConstant.cpp1799 const CXXRecordDecl *BaseDecl = Base->getType()->getAsCXXRecordDecl(); in HandleLValueBase()
1809 DerivedDecl = D.MostDerivedType->getAsCXXRecordDecl(); in HandleLValueBase()
1826 if (!HandleLValueBase(Info, E, Result, Type->getAsCXXRecordDecl(), in HandleLValueBasePath()
2008 if (I->getType()->getAsCXXRecordDecl()->getCanonicalDecl() == Base) in getBaseIndex()
2250 const CXXRecordDecl *Derived = ObjType->getAsCXXRecordDecl(); in findSubobject()
3024 const CXXRecordDecl *RD = LVType->getAsCXXRecordDecl(); in HandleMemberPointerAccess()
3096 const CXXRecordDecl *TargetType = TargetQT->getAsCXXRecordDecl(); in HandleBaseToDerivedCast()
3099 FinalType = D.MostDerivedType->getAsCXXRecordDecl(); in HandleBaseToDerivedCast()
3726 BaseType->getAsCXXRecordDecl(), &Layout)) in HandleConstructorCall()
4887 const CXXRecordDecl *Derived = (*PathI)->getType()->getAsCXXRecordDecl(); in VisitCastExpr()
[all …]
/external/clang/lib/StaticAnalyzer/Core/
DStore.cpp235 const CXXRecordDecl *RD = TVR->getValueType()->getAsCXXRecordDecl(); in regionMatchesCXXRecordType()
241 Expected = Ty->getAsCXXRecordDecl(); in regionMatchesCXXRecordType()
282 BaseDecl = BaseType->getAsCXXRecordDecl(); in evalDerivedToBase()
300 return TVR->getValueType()->getAsCXXRecordDecl(); in getCXXRecordType()
317 const CXXRecordDecl *TargetClass = TargetType->getAsCXXRecordDecl(); in evalDynamicCast()
DMemRegion.cpp973 const CXXRecordDecl *Class = Super->getValueType()->getAsCXXRecordDecl(); in isValidBaseClass()
981 if (I.getType()->getAsCXXRecordDecl()->getCanonicalDecl() == BaseClass) in isValidBaseClass()
1180 if (I.getType()->getAsCXXRecordDecl() == Base) in isImmediateBase()
1251 const CXXRecordDecl *Child = Ty->getAsCXXRecordDecl(); in getAsOffset()
/external/clang/lib/ASTMatchers/
DASTMatchFinder.cpp617 static CXXRecordDecl *getAsCXXRecordDecl(const Type *TypeNode) { in getAsCXXRecordDecl() function
628 return TypeNode->getAsCXXRecordDecl(); in getAsCXXRecordDecl()
644 CXXRecordDecl *SpecializationDecl = TemplateType->getAsCXXRecordDecl(); in getAsCXXRecordDecl()
656 return getAsCXXRecordDecl(AliasDecl->getUnderlyingType().getTypePtr()); in getAsCXXRecordDecl()
673 CXXRecordDecl *ClassDecl = getAsCXXRecordDecl(TypeNode); in classIsDerivedFrom()
/external/chromium_org/tools/clang/blink_gc_plugin/
DRecordInfo.cpp68 if (CXXRecordDecl* decl = (*it)->getAsCXXRecordDecl()) in IsHeapAllocatedCollection()
80 if (CXXRecordDecl* record = specifier->getType()->getAsCXXRecordDecl()) in IsGCBaseCallback()
112 CXXRecordDecl* base = elem.Base->getType()->getAsCXXRecordDecl(); in IsGCFinalized()
129 CXXRecordDecl* base = elem.Base->getType()->getAsCXXRecordDecl(); in IsGCMixin()
DConfig.h173 formal_type->getPointeeType()->getAsCXXRecordDecl();
DRecordInfo.h150 return Lookup(type->getAsCXXRecordDecl()); in Lookup()
DBlinkGCPlugin.cpp377 CXXRecordDecl* decl = base->getPointeeType()->getAsCXXRecordDecl(); in VisitCallExpr()
461 decl = type->getAsCXXRecordDecl(); in CheckTraceBaseCall()
1030 left_most_base = it->getType()->getAsCXXRecordDecl(); in CheckPolymorphicClass()
1075 if (CXXRecordDecl* next_base = it->getType()->getAsCXXRecordDecl()) { in CheckPolymorphicClass()
1095 left_most = it->getType()->getAsCXXRecordDecl(); in GetLeftMostBase()
1115 left_most = it->getType()->getAsCXXRecordDecl(); in CheckLeftMostDerived()
/external/chromium_org/tools/clang/plugins/
DFindBadConstructsConsumer.cpp350 ->getAsCXXRecordDecl(); in CheckVirtualMethods()
675 if (arg.getAsType().getTypePtr()->getAsCXXRecordDecl() == in CheckWeakPtrFactoryMembers()
676 record->getTypeForDecl()->getAsCXXRecordDecl()) { in CheckWeakPtrFactoryMembers()
/external/clang/lib/CodeGen/
DCGRecordLayoutBuilder.cpp426 const CXXRecordDecl *BaseDecl = Base.getType()->getAsCXXRecordDecl(); in accumulateBases()
451 const CXXRecordDecl *BaseDecl = Base.getType()->getAsCXXRecordDecl(); in accumulateVBases()
464 const CXXRecordDecl *BaseDecl = Base.getType()->getAsCXXRecordDecl(); in accumulateVBases()
491 if (!hasOwnStorage(Base.getType()->getAsCXXRecordDecl(), Query)) in hasOwnStorage()
DMicrosoftCXXABI.cpp624 if (Context.getASTRecordLayout(Base.getType()->getAsCXXRecordDecl()) in getPolymorphicOffset()
627 CGF, Value, RD, Base.getType()->getAsCXXRecordDecl()); in getPolymorphicOffset()
635 const CXXRecordDecl *SrcDecl = SrcRecordTy->getAsCXXRecordDecl(); in performBaseAdjustment()
649 const CXXRecordDecl *SrcDecl = SrcRecordTy->getAsCXXRecordDecl(); in shouldTypeidBeNullChecked()
683 const CXXRecordDecl *SrcDecl = SrcRecordTy->getAsCXXRecordDecl(); in shouldDynamicCastCallBeNullChecked()
767 const CXXRecordDecl *RD = FI.getReturnType()->getAsCXXRecordDecl(); in classifyReturnType()
1558 const CXXRecordDecl *VBase = I.getType()->getAsCXXRecordDecl(); in emitVBTableDefinition()
2641 serializeClassHierarchy(Classes, Base.getType()->getAsCXXRecordDecl()); in serializeClassHierarchy()
DCGCXXABI.cpp274 derivedType->castAs<MemberPointerType>()->getClass()->getAsCXXRecordDecl(); in getMemberPointerAdjustment()
/external/clang/tools/libclang/
DIndexTypeSourceInfo.cpp76 if (CXXRecordDecl *RD = T->getAsCXXRecordDecl()) in VisitTemplateSpecializationTypeLoc()
DCXType.cpp878 const CXXRecordDecl *RecordDecl = T->getAsCXXRecordDecl(); in clang_Type_getNumTemplateArguments()
892 const CXXRecordDecl *RecordDecl = T->getAsCXXRecordDecl(); in clang_Type_getTemplateArgumentAsType()
/external/clang/lib/Sema/
DSemaExprCXX.cpp880 CXXRecordDecl *Class = BaseType->getAsCXXRecordDecl(); in isThisOutsideMemberFunctionBody()
3315 if (const CXXRecordDecl *RD = T->getAsCXXRecordDecl()) in EvaluateUnaryTypeTrait()
3319 if (const CXXRecordDecl *RD = T->getAsCXXRecordDecl()) in EvaluateUnaryTypeTrait()
3323 if (const CXXRecordDecl *RD = T->getAsCXXRecordDecl()) in EvaluateUnaryTypeTrait()
3327 if (const CXXRecordDecl *RD = T->getAsCXXRecordDecl()) in EvaluateUnaryTypeTrait()
3331 if (const CXXRecordDecl *RD = T->getAsCXXRecordDecl()) in EvaluateUnaryTypeTrait()
3335 if (const CXXRecordDecl *RD = T->getAsCXXRecordDecl()) in EvaluateUnaryTypeTrait()
3366 if (CXXRecordDecl *RD = C.getBaseElementType(T)->getAsCXXRecordDecl()) in EvaluateUnaryTypeTrait()
3376 if (CXXRecordDecl *RD = C.getBaseElementType(T)->getAsCXXRecordDecl()) in EvaluateUnaryTypeTrait()
3387 if (CXXRecordDecl *RD = T->getAsCXXRecordDecl()) in EvaluateUnaryTypeTrait()
[all …]
DSemaFixItUtils.cpp212 const CXXRecordDecl *RD = T->getAsCXXRecordDecl(); in getFixItZeroInitializerForType()
DSemaOpenMP.cpp401 SemaRef.getLangOpts().CPlusPlus ? Type->getAsCXXRecordDecl() : nullptr; in getTopDSA()
503 getLangOpts().CPlusPlus ? Type->getAsCXXRecordDecl() : nullptr; in EndOpenMPDSABlock()
2445 ? Type.getNonReferenceType()->getAsCXXRecordDecl() in ActOnOpenMPPrivateClause()
2573 ? Type.getNonReferenceType()->getAsCXXRecordDecl() in ActOnOpenMPFirstprivateClause()
2799 ? Type.getNonReferenceType()->getAsCXXRecordDecl() in ActOnOpenMPLastprivateClause()
3181 ? Type.getNonReferenceType()->getAsCXXRecordDecl() in ActOnOpenMPReductionClause()
3489 getLangOpts().CPlusPlus ? Type->getAsCXXRecordDecl() : nullptr; in ActOnOpenMPCopyinClause()
3592 getLangOpts().CPlusPlus ? Type->getAsCXXRecordDecl() : nullptr; in ActOnOpenMPCopyprivateClause()
DSemaDeclCXX.cpp945 ? !Field->getType()->getAsCXXRecordDecl()->hasVariantMembers() in CheckConstexprCtorInitializer()
946 : Field->getType()->getAsCXXRecordDecl()->isEmpty())) in CheckConstexprCtorInitializer()
1276 CXXRecordDecl *Base = I.getType()->getAsCXXRecordDecl(); in findCircularInheritance()
1383 if (CXXRecordDecl *BaseDecl = BaseType->getAsCXXRecordDecl()) { in CheckBaseSpecifier()
1420 BaseType->getAsCXXRecordDecl())) { in CheckBaseSpecifier()
1620 CXXRecordDecl *DerivedRD = Derived->getAsCXXRecordDecl(); in IsDerivedFrom()
1624 CXXRecordDecl *BaseRD = Base->getAsCXXRecordDecl(); in IsDerivedFrom()
1643 CXXRecordDecl *DerivedRD = Derived->getAsCXXRecordDecl(); in IsDerivedFrom()
1647 CXXRecordDecl *BaseRD = Base->getAsCXXRecordDecl(); in IsDerivedFrom()
1910 if (const CXXRecordDecl *RD = T->getAsCXXRecordDecl()) in InitializationHasSideEffects()
[all …]
/external/clang/lib/Analysis/
DCFG.cpp1114 const CXXDestructorDecl *Dtor = Ty->getAsCXXRecordDecl()->getDestructor(); in addAutomaticObjDtors()
1133 const CXXRecordDecl *CD = VI.getType()->getAsCXXRecordDecl(); in addImplicitDtorsForDestructor()
1143 const CXXRecordDecl *CD = BI.getType()->getAsCXXRecordDecl(); in addImplicitDtorsForDestructor()
1161 if (const CXXRecordDecl *CD = QT->getAsCXXRecordDecl()) in addImplicitDtorsForDestructor()
1265 if (const CXXRecordDecl *CD = QT->getAsCXXRecordDecl()) in addLocalScopeForVarDecl()
3410 CXXRecordDecl *RD = Context->getBaseElementType(DTy)->getAsCXXRecordDecl(); in VisitCXXDeleteExpr()
3729 astContext.getBaseElementType(DTy)->getAsCXXRecordDecl(); in getDestructorDecl()
4081 OS << I->getBaseClass()->getAsCXXRecordDecl()->getName(); in print_elem()
4083 OS << I->getTypeSourceInfo()->getType()->getAsCXXRecordDecl()->getName(); in print_elem()
4107 OS << ".~" << T->getAsCXXRecordDecl()->getName().str() << "()"; in print_elem()
[all …]
DConsumed.cpp145 if (const CXXRecordDecl *RD = QT->getAsCXXRecordDecl()) in isConsumableType()
155 if (const CXXRecordDecl *RD = QT->getAsCXXRecordDecl()) in isAutoCastType()
196 QT->getAsCXXRecordDecl()->getAttr<ConsumableAttr>(); in mapConsumableAttrState()
1246 const CXXRecordDecl *RD = ReturnType->getAsCXXRecordDecl(); in determineExpectedReturnState()
/external/lldb/source/Symbol/
DClangASTType.cpp842 CXXRecordDecl *cxx_record_decl = pointee_qual_type->getAsCXXRecordDecl(); in IsPossibleDynamicType()
946 CXXRecordDecl *cxx_record_decl = qual_type->getAsCXXRecordDecl(); in GetCXXClassName()
965 if (qual_type->getAsCXXRecordDecl() != NULL) in IsCXXClassType()
1242 if (qual_type->getAsCXXRecordDecl()) in GetTypeInfo()
1305 if (qual_type->getAsCXXRecordDecl()) in GetMinimumLanguage()
2267 const CXXRecordDecl *cxx_record_decl = qual_type->getAsCXXRecordDecl(); in GetNumDirectBaseClasses()
2333 const CXXRecordDecl *cxx_record_decl = qual_type->getAsCXXRecordDecl(); in GetNumVirtualBaseClasses()
2447 const CXXRecordDecl *cxx_record_decl = qual_type->getAsCXXRecordDecl(); in GetDirectBaseClassAtIndex()
2547 const CXXRecordDecl *cxx_record_decl = qual_type->getAsCXXRecordDecl(); in GetVirtualBaseClassAtIndex()
3380 return ClangASTContext::RecordHasFields(b->getType()->getAsCXXRecordDecl()) == false; in BaseSpecifierIsEmpty()
[all …]

123