Home
last modified time | relevance | path

Searched refs:CXXDestructorDecl (Results 1 – 25 of 87) sorted by relevance

1234

/external/clang/lib/CodeGen/
DCGCXX.cpp34 bool CodeGenModule::TryEmitBaseDestructorAsAlias(const CXXDestructorDecl *D) { in TryEmitBaseDestructorAsAlias()
107 const CXXDestructorDecl *BaseD = UniqueBase->getDestructor(); in TryEmitBaseDestructorAsAlias()
226 if (const auto *DD = dyn_cast<CXXDestructorDecl>(MD)) { in codegenCXXStructor()
249 GD = GlobalDecl(cast<CXXDestructorDecl>(MD), toCXXDtorType(Type)); in getAddrOfCXXStructor()
301 if (const auto *DD = dyn_cast<CXXDestructorDecl>(MD)) in BuildAppleKextVirtualCall()
311 const CXXDestructorDecl *DD, in BuildAppleKextVirtualDestructorCall()
DCGCXXABI.h31 class CXXDestructorDecl; variable
233 const CXXDestructorDecl *Dtor) = 0;
302 virtual bool useThunkForDtorVariant(const CXXDestructorDecl *Dtor,
306 virtual void EmitCXXDestructors(const CXXDestructorDecl *D) = 0;
366 const CXXDestructorDecl *DD, CXXDtorType Type,
414 EmitVirtualDestructorCall(CodeGenFunction &CGF, const CXXDestructorDecl *Dtor,
DCGClass.cpp486 const CXXDestructorDecl *D = BaseClass->getDestructor(); in Emit()
858 : cast<CXXDestructorDecl>(CurGD.getDecl())->getParent(); in EmitAsanPrologueOrEpilogue()
1485 const CXXDestructorDecl *Dtor) { in CanSkipVTablePointerInitialization()
1503 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CurGD.getDecl()); in EmitDestructorBody()
1619 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CGF.CurCodeDecl); in Emit()
1643 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CGF.CurCodeDecl); in Emit()
1694 const CXXDestructorDecl *Dtor;
1697 SanitizeDtorMembers(const CXXDestructorDecl *Dtor) : Dtor(Dtor) {} in SanitizeDtorMembers()
1782 const CXXDestructorDecl *Dtor;
1785 SanitizeDtorVTable(const CXXDestructorDecl *Dtor) : Dtor(Dtor) {} in SanitizeDtorVTable()
[all …]
DCGVTables.cpp42 if (const CXXDestructorDecl* DD = dyn_cast<CXXDestructorDecl>(MD)) in GetAddrOfThunk()
231 if (isa<CXXDestructorDecl>(MD)) in StartThunk()
283 if (isa<CXXDestructorDecl>(MD)) in EmitCallAndReturnForThunk()
298 assert(isa<CXXDestructorDecl>(MD) || // ignore dtor return types in EmitCallAndReturnForThunk()
510 if (isa<CXXDestructorDecl>(MD) && GD.getDtorType() == Dtor_Base) in EmitThunks()
DItaniumCXXABI.cpp75 if (isa<CXXDestructorDecl>(GD.getDecl())) { in isThisCompleteObject()
155 const CXXDestructorDecl *Dtor) override;
210 bool useThunkForDtorVariant(const CXXDestructorDecl *Dtor, in useThunkForDtorVariant()
218 void EmitCXXDestructors(const CXXDestructorDecl *D) override;
231 void EmitDestructorCall(CodeGenFunction &CGF, const CXXDestructorDecl *DD,
269 const CXXDestructorDecl *Dtor,
409 isa<CXXDestructorDecl>(GD.getDecl()) && in HasThisReturn()
443 (isa<CXXDestructorDecl>(GD.getDecl()) && in HasThisReturn()
1000 const CXXDestructorDecl *Dtor) { in emitVirtualObjectDelete()
1095 CXXDestructorDecl *DtorD = Record->getDestructor(); in emitThrow()
[all …]
DMicrosoftCXXABI.cpp63 if (isa<CXXDestructorDecl>(GD.getDecl())) { in isThisCompleteObject()
117 const CXXDestructorDecl *Dtor) override;
209 bool useThunkForDtorVariant(const CXXDestructorDecl *Dtor, in useThunkForDtorVariant()
214 void EmitCXXDestructors(const CXXDestructorDecl *D) override;
219 if (MD->isVirtual() && !isa<CXXDestructorDecl>(MD)) { in getThisArgumentTypeForMethod()
253 void EmitDestructorCall(CodeGenFunction &CGF, const CXXDestructorDecl *DD,
292 const CXXDestructorDecl *Dtor,
855 const CXXDestructorDecl *Dtor) { in emitVirtualObjectDelete()
1070 return isa<CXXDestructorDecl>(GD.getDecl()) && in isDeletingDtor()
1253 void MicrosoftCXXABI::EmitCXXDestructors(const CXXDestructorDecl *D) { in EmitCXXDestructors()
[all …]
DCGExprCXX.cpp86 const CXXDestructorDecl *DD, llvm::Value *Callee, llvm::Value *This, in EmitCXXDestructorCall()
177 if (isa<CXXDestructorDecl>(MD)) return RValue::get(nullptr); in EmitCXXMemberOrOperatorMemberCallExpr()
209 if (const auto *Dtor = dyn_cast<CXXDestructorDecl>(CalleeDecl)) in EmitCXXMemberOrOperatorMemberCallExpr()
229 if (const CXXDestructorDecl *Dtor = dyn_cast<CXXDestructorDecl>(MD)) { in EmitCXXMemberOrOperatorMemberCallExpr()
243 const CXXDestructorDecl *DDtor = in EmitCXXMemberOrOperatorMemberCallExpr()
244 cast<CXXDestructorDecl>(DevirtualizedMethod); in EmitCXXMemberOrOperatorMemberCallExpr()
1551 const CXXDestructorDecl *Dtor = nullptr; in EmitObjectDelete()
/external/clang/include/clang/AST/
DVTableBuilder.h73 assert(!isa<CXXDestructorDecl>(MD) && in MakeFunction()
80 static VTableComponent MakeCompleteDtor(const CXXDestructorDecl *DD) { in MakeCompleteDtor()
85 static VTableComponent MakeDeletingDtor(const CXXDestructorDecl *DD) { in MakeDeletingDtor()
91 assert(!isa<CXXDestructorDecl>(MD) && in MakeUnusedFunction()
136 const CXXDestructorDecl *getDestructorDecl() const { in getDestructorDecl()
138 return reinterpret_cast<CXXDestructorDecl *>(getPointer()); in getDestructorDecl()
546 if (isa<CXXDestructorDecl>(GD.getDecl()) && in getThunkInfo()
DMangle.h30 class CXXDestructorDecl; variable
103 virtual void mangleCXXDtorThunk(const CXXDestructorDecl *DD, CXXDtorType Type,
113 virtual void mangleCXXDtor(const CXXDestructorDecl *D, CXXDtorType Type,
122 void mangleDtorBlock(const CXXDestructorDecl *CD, CXXDtorType DT,
169 virtual void mangleCXXDtorComdat(const CXXDestructorDecl *D,
DGlobalDecl.h34 assert(!isa<CXXDestructorDecl>(D) && "Use other ctor with dtor decls!"); in Init()
51 GlobalDecl(const CXXDestructorDecl *D, CXXDtorType Type) in GlobalDecl()
70 assert(isa<CXXDestructorDecl>(getDecl()) && "Decl is not a dtor!"); in getDtorType()
DASTMutationListener.h21 class CXXDestructorDecl; variable
81 virtual void ResolvedOperatorDelete(const CXXDestructorDecl *DD, in ResolvedOperatorDelete()
DDeclCXX.h38 class CXXDestructorDecl; variable
1413 CXXDestructorDecl *getDestructor() const;
2414 class CXXDestructorDecl : public CXXMethodDecl {
2419 CXXDestructorDecl(ASTContext &C, CXXRecordDecl *RD, SourceLocation StartLoc, in CXXDestructorDecl() function
2430 static CXXDestructorDecl *Create(ASTContext &C, CXXRecordDecl *RD,
2436 static CXXDestructorDecl *CreateDeserialized(ASTContext & C, unsigned ID);
2440 return cast<CXXDestructorDecl>(getFirstDecl())->OperatorDelete; in getOperatorDelete()
/external/clang/lib/Index/
DCodegenNameGenerator.cpp100 } else if (const auto *DD = dyn_cast_or_null<CXXDestructorDecl>(ND)) { in getAllManglings()
123 else if (const auto *DtorD = dyn_cast<CXXDestructorDecl>(D)) in writeFuncOrVarName()
152 else if (const auto *DD = dyn_cast_or_null<CXXDestructorDecl>(ND)) in getMangledStructor()
/external/clang/lib/AST/
DDeclCXX.cpp566 if (CXXDestructorDecl *DD = dyn_cast<CXXDestructorDecl>(D)) { in addedMember()
1008 } else if (isa<CXXDestructorDecl>(D)) { in finishedDefaultedOrDeletedMember()
1364 CXXDestructorDecl *CXXRecordDecl::getDestructor() const { in getDestructor()
1376 CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(R.front()); in getDestructor()
1382 if (const CXXDestructorDecl *Destructor = getDestructor()) in isAnyDestructorNoReturn()
1494 if (isa<CXXDestructorDecl>(this)) { in getCorrespondingMethodInClass()
1951 void CXXDestructorDecl::anchor() { } in anchor()
1953 CXXDestructorDecl *
1954 CXXDestructorDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
1956 CXXDestructorDecl(C, nullptr, SourceLocation(), DeclarationNameInfo(), in CreateDeserialized()
[all …]
DMangle.cpp212 void MangleContext::mangleDtorBlock(const CXXDestructorDecl *DD, in mangleDtorBlock()
223 assert(!isa<CXXConstructorDecl>(DC) && !isa<CXXDestructorDecl>(DC)); in mangleBlock()
239 else if (const auto *DD = dyn_cast<CXXDestructorDecl>(DC)) in mangleBlock()
DVTableBuilder.cpp494 if (isa<CXXDestructorDecl>(LHS)) in MethodsCanShareVCallOffset()
495 return isa<CXXDestructorDecl>(RHS); in MethodsCanShareVCallOffset()
1149 if (isa<CXXDestructorDecl>(MD)) { in ComputeThisAdjustments()
1308 if (const CXXDestructorDecl *DD = dyn_cast<CXXDestructorDecl>(MD)) { in AddMethod()
1491 const CXXDestructorDecl *ImplicitVirtualDtor = nullptr; in AddMethods()
1559 if (const CXXDestructorDecl *DD = dyn_cast<CXXDestructorDecl>(MD)) { in AddMethods()
1682 if (const CXXDestructorDecl *DD = dyn_cast<CXXDestructorDecl>(MD)) { in LayoutPrimaryAndSecondaryVTables()
1992 const CXXDestructorDecl *DD = Component.getDestructorDecl(); in dumpLayout()
2175 if (const CXXDestructorDecl *DD = dyn_cast<CXXDestructorDecl>(MD)) { in dumpLayout()
2495 if (const CXXDestructorDecl *DD = dyn_cast<CXXDestructorDecl>(MD)) { in AddMethod()
[all …]
DItaniumMangle.cpp146 void mangleCXXDtorThunk(const CXXDestructorDecl *DD, CXXDtorType Type,
160 void mangleCXXDtor(const CXXDestructorDecl *D, CXXDtorType Type,
164 void mangleCXXDtorComdat(const CXXDestructorDecl *D, raw_ostream &) override;
393 assert(!D || (!isa<CXXDestructorDecl>(D) && in CXXNameMangler()
401 const CXXDestructorDecl *D, CXXDtorType Type) in CXXNameMangler()
734 if (!(isa<CXXConstructorDecl>(FD) || isa<CXXDestructorDecl>(FD) || in mangleFunctionEncodingBareType()
4464 assert(!isa<CXXConstructorDecl>(D) && !isa<CXXDestructorDecl>(D) && in mangleCXXName()
4482 void ItaniumMangleContextImpl::mangleCXXDtor(const CXXDestructorDecl *D, in mangleCXXDtor()
4495 void ItaniumMangleContextImpl::mangleCXXDtorComdat(const CXXDestructorDecl *D, in mangleCXXDtorComdat()
4511 assert(!isa<CXXDestructorDecl>(MD) && in mangleThunk()
[all …]
/external/clang/include/clang/Analysis/Analyses/
DThreadSafetyCommon.h105 void handleDestructorCall(const VarDecl *VD, const CXXDestructorDecl *DD) {} in handleDestructorCall()
195 CXXDestructorDecl *DD = const_cast<CXXDestructorDecl*>( in walk()
449 void handleDestructorCall(const VarDecl *VD, const CXXDestructorDecl *DD);
/external/v8/tools/clang/plugins/
DFindBadConstructsConsumer.cpp414 } else if (CXXDestructorDecl* dtor = record->getDestructor()) { in CheckCtorDtorWeight()
487 } else if (isa<CXXDestructorDecl>(*it) && in CheckVirtualMethods()
710 if (CXXDestructorDecl* dtor = record->getDestructor()) { in CheckRecordForRefcountIssue()
827 if (CXXDestructorDecl* dtor = in CheckRefCountedDtors()
/external/clang/lib/Frontend/
DASTConsumers.cpp339 const CXXDestructorDecl* D = cast<CXXDestructorDecl>(DC); in PrintDeclContext()
DMultiplexConsumer.cpp118 void ResolvedOperatorDelete(const CXXDestructorDecl *DD,
185 const CXXDestructorDecl *DD, const FunctionDecl *Delete) { in ResolvedOperatorDelete()
/external/clang/lib/Sema/
DSemaExceptionSpec.cpp194 if (!isa<CXXDestructorDecl>(Decl) && in hasImplicitExceptionSpec()
205 return isa<CXXDestructorDecl>(Decl); in hasImplicitExceptionSpec()
840 if (getLangOpts().CPlusPlus11 && isa<CXXDestructorDecl>(New)) { in CheckOverridingFunctionExceptionSpec()
1040 const CXXDestructorDecl *DD = RD->getDestructor(); in canThrow()
DSemaCoroutine.cpp118 } else if (isa<CXXConstructorDecl>(FD) || isa<CXXDestructorDecl>(FD)) { in checkCoroutineContext()
125 << isa<CXXDestructorDecl>(FD) << Keyword; in checkCoroutineContext()
/external/clang/lib/StaticAnalyzer/Core/
DIssueHash.cpp37 if (!isa<CXXConstructorDecl>(Target) && !isa<CXXDestructorDecl>(Target) && in GetSignature()
/external/clang/lib/StaticAnalyzer/Checkers/
DVirtualCallChecker.cpp235 if (CXXDestructorDecl *DD = RD->getDestructor()) in checkASTDecl()

1234