Home
last modified time | relevance | path

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

12345

/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DConstructionContext.cpp54 if (!BTE && !(MTE->getType().getCanonicalType()->getAsCXXRecordDecl() in createMaterializedTemporaryFromLayers()
112 ->getAsCXXRecordDecl()->hasTrivialDestructor()); in createBoundTemporaryFromLayers()
122 ->getAsCXXRecordDecl()->hasTrivialDestructor()); in createBoundTemporaryFromLayers()
155 ->getAsCXXRecordDecl()->hasTrivialDestructor()); in createBoundTemporaryFromLayers()
199 assert(BTE->getType().getCanonicalType()->getAsCXXRecordDecl() in createFromLayers()
H A DCFG.cpp749 if (Arg->getType()->getAsCXXRecordDecl() && !Arg->isGLValue()) in findConstructionContextsForArguments()
1527 assert(!CO->getType()->getAsCXXRecordDecl() || CO->isGLValue() || in findConstructionContexts()
1884 const CXXRecordDecl *CRD = Ty->getAsCXXRecordDecl(); in addAutomaticObjDestruction()
2018 const CXXRecordDecl *CD = VI.getType()->getAsCXXRecordDecl(); in addImplicitDtorsForDestructor()
2028 const CXXRecordDecl *CD = BI.getType()->getAsCXXRecordDecl(); in addImplicitDtorsForDestructor()
2047 if (const CXXRecordDecl *CD = QT->getAsCXXRecordDecl()) in addImplicitDtorsForDestructor()
2142 if (const CXXRecordDecl *CD = QT->getAsCXXRecordDecl()) in hasTrivialDestructor()
4871 CXXRecordDecl *RD = Context->getBaseElementType(DTy)->getAsCXXRecordDecl(); in VisitCXXDeleteExpr()
5324 const CXXRecordDecl *classDecl = ty->getAsCXXRecordDecl(); in getDestructorDecl()
5333 astContext.getBaseElementType(DTy)->getAsCXXRecordDecl(); in getDestructorDecl()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DASTImporterLookupTable.cpp60 LT.add(RTy->getAsCXXRecordDecl()); in VisitFriendDecl()
62 LT.add(SpecTy->getAsCXXRecordDecl()); in VisitFriendDecl()
65 if (SubstTy->getAsCXXRecordDecl()) in VisitFriendDecl()
66 LT.add(SubstTy->getAsCXXRecordDecl()); in VisitFriendDecl()
H A DRecordLayoutBuilder.cpp190 const CXXRecordDecl *BaseDecl = Base.getType()->getAsCXXRecordDecl(); in ComputeEmptySubobjectSizes()
216 const CXXRecordDecl *MemberDecl = RT->getAsCXXRecordDecl(); in ComputeEmptySubobjectSizes()
395 const CXXRecordDecl *BaseDecl = Base.getType()->getAsCXXRecordDecl(); in CanPlaceFieldSubobjectAtOffset()
405 const CXXRecordDecl *VBaseDecl = Base.getType()->getAsCXXRecordDecl(); in CanPlaceFieldSubobjectAtOffset()
438 if (const CXXRecordDecl *RD = T->getAsCXXRecordDecl()) in CanPlaceFieldSubobjectAtOffset()
448 const CXXRecordDecl *RD = RT->getAsCXXRecordDecl(); in CanPlaceFieldSubobjectAtOffset()
506 const CXXRecordDecl *BaseDecl = Base.getType()->getAsCXXRecordDecl(); in UpdateEmptyFieldSubobjects()
516 const CXXRecordDecl *VBaseDecl = Base.getType()->getAsCXXRecordDecl(); in UpdateEmptyFieldSubobjects()
540 if (const CXXRecordDecl *RD = T->getAsCXXRecordDecl()) { in UpdateEmptyFieldSubobjects()
552 const CXXRecordDecl *RD = RT->getAsCXXRecordDecl(); in UpdateEmptyFieldSubobjects()
[all …]
H A DComparisonCategories.cpp51 const auto *Record = VD->getType()->getAsCXXRecordDecl(); in hasValidIntValue()
129 const auto *RD = Ty->getAsCXXRecordDecl(); in lookupInfoForType()
H A 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()
738 const CXXRecordDecl *BaseDecl = B.getType()->getAsCXXRecordDecl(); in AddVCallOffsets()
759 const CXXRecordDecl *BaseDecl = B.getType()->getAsCXXRecordDecl(); in AddVBaseOffsets()
1801 const CXXRecordDecl *BaseDecl = B.getType()->getAsCXXRecordDecl(); in LayoutSecondaryVTables()
1875 const CXXRecordDecl *BaseDecl = B.getType()->getAsCXXRecordDecl(); in DeterminePrimaryVirtualBases()
1904 const CXXRecordDecl *BaseDecl = B.getType()->getAsCXXRecordDecl(); in LayoutVTablesForVirtualBases()
2445 RD->vbases_begin()->getType()->getAsCXXRecordDecl(); in computeVTableRelatedInformation()
[all …]
H A DQualTypeNames.cpp248 TD = Type->getAsCXXRecordDecl(); in getFullyQualifiedNestedNameSpecifier()
333 Decl = TypePtr->getAsCXXRecordDecl(); in createNestedNameSpecifierForScopeOf()
H A DExprCXX.cpp143 if (const CXXRecordDecl *RD = E->getType()->getAsCXXRecordDecl()) in isPotentiallyEvaluated()
738 return ThisArg->getType()->getPointeeType()->getAsCXXRecordDecl(); in getRecordDecl()
740 return ThisArg->getType()->getAsCXXRecordDecl(); in getRecordDecl()
836 const auto *SrcRD = SrcType->getAsCXXRecordDecl(); in isAlwaysNull()
837 const auto *DestRD = DestType->getAsCXXRecordDecl(); in isAlwaysNull()
1383 return getType()->getAsCXXRecordDecl(); in getLambdaClass()
1678 Record = T->getAsCXXRecordDecl(); in getNamingClass()
1687 Record = BaseType->getAsCXXRecordDecl(); in getNamingClass()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DRefCntblBaseVirtualDtorChecker.cpp91 if (Type->getAsCXXRecordDecl() == ClassDecl) in VisitCXXDeleteExpr()
169 const CXXRecordDecl *C = T->getAsCXXRecordDecl(); in checkASTDecl()
181 bool IsCRTP = TemplT->getAsCXXRecordDecl() == RD; in checkASTDecl()
225 const CXXRecordDecl *C = T->getAsCXXRecordDecl(); in visitCXXRecordDecl()
265 auto *R = T->getAsCXXRecordDecl(); in visitCXXRecordDecl()
H A DUncountedLocalVarsChecker.cpp38 if (auto *CXXRD = T->getAsCXXRecordDecl()) { in isRefcountedStringsHack()
221 MaybeGuardianArgType->getAsCXXRecordDecl(); in visitVarDecl()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DStore.cpp241 const CXXRecordDecl *RD = TVR->getValueType()->getAsCXXRecordDecl(); in regionMatchesCXXRecordType()
247 Expected = Ty->getAsCXXRecordDecl(); in regionMatchesCXXRecordType()
283 BaseDecl = BaseType->getAsCXXRecordDecl(); in evalDerivedToBase()
310 return TVR->getValueType()->getAsCXXRecordDecl(); in getCXXRecordType()
325 const CXXRecordDecl *TargetClass = TargetType->getAsCXXRecordDecl(); in evalBaseToDerived()
/freebsd/contrib/llvm-project/clang/lib/Index/
H A DIndexTypeSourceInfo.cpp70 if (auto *CD = TL.getType()->getAsCXXRecordDecl()) { in VisitTypedefTypeLoc()
169 T->getTemplateName(), TL.getTemplateNameLoc(), T->getAsCXXRecordDecl(), in VisitTemplateSpecializationTypeLoc()
199 T->getTemplateName(), TL.getTemplateNameLoc(), T->getAsCXXRecordDecl(), in VisitDeducedTemplateSpecializationTypeLoc()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DRecordOps.cpp56 auto SrcDecl = SrcType->getAsCXXRecordDecl(); in copyRecord()
57 auto DstDecl = DstType->getAsCXXRecordDecl(); in copyRecord()
H A DASTOps.cpp68 if (auto *CXXRecord = Type->getAsCXXRecordDecl()) in getFieldsFromClassHierarchy()
132 auto *RD = Ty->getAsCXXRecordDecl(); in RecordInitListHelper()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCXXDeleteChecker.cpp114 const auto *BaseClass = BaseClassRegion->getValueType()->getAsCXXRecordDecl(); in checkTypedDeleteExpr()
144 const auto *BaseClass = BaseClassRegion->getValueType()->getAsCXXRecordDecl(); in checkTypedDeleteExpr()
H A DCastValueChecker.cpp110 CastInfo ? CastInfo->to()->getAsCXXRecordDecl()->getNameAsString() in getNoteTag()
166 CastToTy->getAsCXXRecordDecl() in getNoteTag()
167 ? CastToTy->getAsCXXRecordDecl()->getNameAsString() in getNoteTag()
H A DSmartPtrModeling.cpp120 return isStdSmartPtr(E->getType()->getAsCXXRecordDecl()); in isStdSmartPtr()
146 return isStdSmartPtr(E->getType()->getAsCXXRecordDecl()); in isStdSmartPtr()
245 const auto *RD = E->getType()->getAsCXXRecordDecl(); in isStdBasicOstream()
294 if (!smartptr::isStdSmartPtr(FirstArg->getType()->getAsCXXRecordDecl())) in evalCall()
479 QualType Type = getInnerPointerType(C, E->getType()->getAsCXXRecordDecl()); in handleComparisionOp()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DContext.cpp240 CurRecord = CurRecord->bases_begin()->getType()->getAsCXXRecordDecl(); in getOverridingFunction()
246 const CXXRecordDecl *Base = Spec.getType()->getAsCXXRecordDecl(); in getOverridingFunction()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGRecordLayoutBuilder.cpp397 ? getStorageType(Field->getType()->getAsCXXRecordDecl()) in accumulateFields()
734 const CXXRecordDecl *BaseDecl = Base.getType()->getAsCXXRecordDecl(); in accumulateBases()
882 const CXXRecordDecl *BaseDecl = Base.getType()->getAsCXXRecordDecl(); in calculateTailClippingOffset()
898 const CXXRecordDecl *BaseDecl = Base.getType()->getAsCXXRecordDecl(); in accumulateVBases()
926 if (!hasOwnStorage(Base.getType()->getAsCXXRecordDecl(), Query)) in hasOwnStorage()
H A DCGVTables.cpp92 auto ClassDecl = ResultType->getPointeeType()->getAsCXXRecordDecl(); in PerformReturnAdjustment()
1334 if (B.getType()->getAsCXXRecordDecl()->isDynamicClass()) in GetVCallVisibilityLevel()
1337 GetVCallVisibilityLevel(B.getType()->getAsCXXRecordDecl(), Visited)); in GetVCallVisibilityLevel()
1340 if (B.getType()->getAsCXXRecordDecl()->isDynamicClass()) in GetVCallVisibilityLevel()
1343 GetVCallVisibilityLevel(B.getType()->getAsCXXRecordDecl(), Visited)); in GetVCallVisibilityLevel()
H A DMicrosoftCXXABI.cpp374 const CXXRecordDecl *VBase = I.getType()->getAsCXXRecordDecl(); in getAddrOfVirtualDisplacementMap()
950 const CXXRecordDecl *SrcDecl = SrcRecordTy->getAsCXXRecordDecl(); in performBaseAdjustment()
964 const CXXRecordDecl *BaseDecl = Base.getType()->getAsCXXRecordDecl(); in performBaseAdjustment()
983 const CXXRecordDecl *SrcDecl = SrcRecordTy->getAsCXXRecordDecl(); in shouldTypeidBeNullChecked()
1016 const CXXRecordDecl *SrcDecl = SrcRecordTy->getAsCXXRecordDecl(); in shouldDynamicCastCallBeNullChecked()
1169 const CXXRecordDecl *RD = FI.getReturnType()->getAsCXXRecordDecl(); in classifyReturnType()
1263 const CXXRecordDecl *VBase = S.getType()->getAsCXXRecordDecl(); in initializeHiddenVirtualInheritanceMembers()
2201 const CXXRecordDecl *VBase = I.getType()->getAsCXXRecordDecl(); in emitVBTableDefinition()
2954 if (BS.getType()->getAsCXXRecordDecl()->getCanonicalDecl() == in EmitMemberPointer()
3720 serializeClassHierarchy(Classes, Base.getType()->getAsCXXRecordDecl()); in serializeClassHierarchy()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCoroutine.cpp102 auto *RD = CoroTrait->getAsCXXRecordDecl(); in lookupPromiseType()
127 if (!PromiseType->getAsCXXRecordDecl()) { in lookupPromiseType()
319 << NameInfo.getName() << Base->getType()->getAsCXXRecordDecl() in buildMemberCall()
851 auto *RD = Promise->getType()->getAsCXXRecordDecl(); in BuildUnresolvedCoawaitExpr()
1052 auto *PointeeRD = PromiseType->getAsCXXRecordDecl(); in findDeleteForPromise()
1171 PromiseRecordDecl = Fn.CoroutinePromise->getType()->getAsCXXRecordDecl(); in CoroutineStmtBuilder()
1373 S.LookupQualifiedName(R, PromiseType->getAsCXXRecordDecl()); in makeNewAndDeleteExpr()
1896 if (PD->getType()->getAsCXXRecordDecl() || in buildCoroutineParameterMoves()
H A DSemaExprCXX.cpp425 Destroyed = SearchType->getAsCXXRecordDecl(); in getDestructorName()
937 CXXRecordDecl *BaseDecl = BS.getType()->getAsCXXRecordDecl(); in collectPublicBases()
1020 CXXRecordDecl *RD = Ty->getAsCXXRecordDecl(); in CheckCXXThrowOperand()
1502 CXXRecordDecl *Class = BaseType->getAsCXXRecordDecl(); in isThisOutsideMemberFunctionBody()
2759 LookupQualifiedName(R, AllocElemType->getAsCXXRecordDecl()); in FindAllocationFunctions()
5022 if (const auto *RD = ArgTy->getAsCXXRecordDecl()) in CheckUnaryTypeTraitTypeCompleteness()
5032 if (ArgTy->getAsCXXRecordDecl()) in CheckUnaryTypeTraitTypeCompleteness()
5171 if (const auto *RD = BS.getType()->getAsCXXRecordDecl()) in HasNonDeletedDefaultedEqualityComparison()
5184 if (const auto *RD = Type->getAsCXXRecordDecl()) in HasNonDeletedDefaultedEqualityComparison()
5196 if (const auto *RD = CanonicalType->getAsCXXRecordDecl()) { in isTriviallyEqualityComparableType()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/
H A DRecursiveSymbolVisitor.h103 return visit(TP->getAsCXXRecordDecl(), TypeBeginLoc, TypeEndLoc); in VisitTypeLoc()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/Models/
H A DUncheckedOptionalAccessModel.cpp78 getOptionalBaseClass(Base.getType()->getAsCXXRecordDecl())) in getOptionalBaseClass()
367 getOptionalBaseClass(Type->getAsCXXRecordDecl()); in countOptionalWrappers()
925 getOptionalBaseClass(Ty->getAsCXXRecordDecl()); in UncheckedOptionalAccessModel()

12345