Home
last modified time | relevance | path

Searched refs:Dtor (Results 1 – 25 of 32) sorted by relevance

12

/external/clang/test/CXX/class/class.union/
Dp1.cpp34 class Dtor { class
35 …~Dtor() { abort(); } // expected-note 2 {{because type 'Dtor' has a user-provided destructor}} exp… in ~Dtor()
46 Dtor dtor; // expected-error {{union member 'dtor' has a non-trivial destructor}}
70 Dtor dtor; // expected-note {{because field of type 'Dtor' has a user-provided destructor}}
90 …struct s6 : Dtor { // expected-note {{because base class of type 'Dtor' has a user-provided destru…
131 Either<int,Dtor> dtor(0); // expected-note {{in instantiation of template}} in fred()
/external/clang/test/SemaCXX/
Ddeprecated.cpp62 struct Dtor { struct
63 ~Dtor();
67 Dtor c1, c2(c1); // expected-note {{implicit copy constructor for 'Dtor' first required here}}
/external/clang/test/Analysis/
Dtemporaries.cpp115 struct Dtor { in testPR16664andPR18159Crash() struct
116 ~Dtor(); in testPR16664andPR18159Crash()
119 extern bool check(const Dtor &); in testPR16664andPR18159Crash()
123 if (coin() && (coin() || coin() || check(Dtor()))) { in testPR16664andPR18159Crash()
124 Dtor(); in testPR16664andPR18159Crash()
Ddtor.cpp234 class Dtor { class
236 ~Dtor() { in ~Dtor()
242 Dtor d; in allocate()
/external/compiler-rt/test/asan/TestCases/Linux/
Dtsd_dtor_leak.cc20 void Dtor(void *tsd) { in Dtor() function
27 assert(0 == pthread_key_create(&tsd_key, Dtor)); in main()
/external/clang/lib/StaticAnalyzer/Checkers/
DDynamicTypePropagation.cpp86 if (const CXXDestructorCall *Dtor = dyn_cast<CXXDestructorCall>(&Call)) { in checkPreCall() local
88 if (!Dtor->isBaseDestructor()) in checkPreCall()
91 const MemRegion *Target = Dtor->getCXXThisVal().getAsRegion(); in checkPreCall()
95 const Decl *D = Dtor->getDecl(); in checkPreCall()
/external/clang/lib/CodeGen/
DCGClass.cpp1245 const CXXDestructorDecl *Dtor) { in CanSkipVTablePointerInitialization() argument
1246 if (!Dtor->hasTrivialBody()) in CanSkipVTablePointerInitialization()
1250 const CXXRecordDecl *ClassDecl = Dtor->getParent(); in CanSkipVTablePointerInitialization()
1260 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CurGD.getDecl()); in EmitDestructorBody() local
1268 EnterDtorCleanups(Dtor, Dtor_Deleting); in EmitDestructorBody()
1269 EmitCXXDestructorCall(Dtor, Dtor_Complete, /*ForVirtualBase=*/false, in EmitDestructorBody()
1275 Stmt *Body = Dtor->getBody(); in EmitDestructorBody()
1299 EnterDtorCleanups(Dtor, Dtor_Complete); in EmitDestructorBody()
1302 EmitCXXDestructorCall(Dtor, Dtor_Base, /*ForVirtualBase=*/false, in EmitDestructorBody()
1315 EnterDtorCleanups(Dtor, Dtor_Base); in EmitDestructorBody()
[all …]
DCGCXXABI.h270 virtual void BuildDestructorSignature(const CXXDestructorDecl *Dtor,
278 virtual bool useThunkForDtorVariant(const CXXDestructorDecl *Dtor,
372 const CXXDestructorDecl *Dtor,
DCGExprCXX.cpp162 if (const CXXDestructorDecl *Dtor = dyn_cast<CXXDestructorDecl>(CalleeDecl)) in EmitCXXMemberCallExpr() local
163 FInfo = &CGM.getTypes().arrangeCXXDestructor(Dtor, in EmitCXXMemberCallExpr()
182 if (const CXXDestructorDecl *Dtor = dyn_cast<CXXDestructorDecl>(MD)) { in EmitCXXMemberCallExpr() local
187 CGM.getCXXABI().EmitVirtualDestructorCall(*this, Dtor, Dtor_Complete, in EmitCXXMemberCallExpr()
195 Callee = CGM.GetAddrOfCXXDestructor(Dtor, Dtor_Complete, FInfo, Ty); in EmitCXXMemberCallExpr()
1397 const CXXDestructorDecl *Dtor = nullptr; in EmitObjectDelete() local
1401 Dtor = RD->getDestructor(); in EmitObjectDelete()
1403 if (Dtor->isVirtual()) { in EmitObjectDelete()
1420 CGF.CGM.getCXXABI().EmitVirtualDestructorCall(CGF, Dtor, DtorType, in EmitObjectDelete()
1438 if (Dtor) in EmitObjectDelete()
[all …]
DCGException.cpp455 llvm::Constant *Dtor = nullptr; in EmitCXXThrowExpr() local
460 Dtor = CGM.GetAddrOfCXXDestructor(DtorD, Dtor_Complete); in EmitCXXThrowExpr()
461 Dtor = llvm::ConstantExpr::getBitCast(Dtor, Int8PtrTy); in EmitCXXThrowExpr()
464 if (!Dtor) Dtor = llvm::Constant::getNullValue(Int8PtrTy); in EmitCXXThrowExpr()
466 llvm::Value *args[] = { ExceptionPtr, TypeInfo, Dtor }; in EmitCXXThrowExpr()
DItaniumCXXABI.cpp147 void BuildDestructorSignature(const CXXDestructorDecl *Dtor,
151 bool useThunkForDtorVariant(const CXXDestructorDecl *Dtor, in useThunkForDtorVariant() argument
196 const CXXDestructorDecl *Dtor,
1104 void ItaniumCXXABI::BuildDestructorSignature(const CXXDestructorDecl *Dtor, in BuildDestructorSignature() argument
1114 if (Type == Dtor_Base && Dtor->getParent()->getNumVBases() != 0) in BuildDestructorSignature()
1343 const CXXDestructorDecl *Dtor, in EmitVirtualDestructorCall() argument
1350 = &CGM.getTypes().arrangeCXXDestructor(Dtor, DtorType); in EmitVirtualDestructorCall()
1353 getVirtualFunctionPointer(CGF, GlobalDecl(Dtor, DtorType), This, Ty); in EmitVirtualDestructorCall()
1355 CGF.EmitCXXMemberCall(Dtor, CallLoc, Callee, ReturnValueSlot(), This, in EmitVirtualDestructorCall()
DCGDecl.cpp383 const CXXDestructorDecl *Dtor, in DestroyNRVOVariable()
385 : Dtor(Dtor), NRVOFlag(NRVOFlag), Loc(addr) {} in DestroyNRVOVariable()
387 const CXXDestructorDecl *Dtor; member
405 CGF.EmitCXXDestructorCall(Dtor, Dtor_Complete, in Emit()
DMicrosoftCXXABI.cpp139 void BuildDestructorSignature(const CXXDestructorDecl *Dtor,
145 bool useThunkForDtorVariant(const CXXDestructorDecl *Dtor, in useThunkForDtorVariant() argument
213 const CXXDestructorDecl *Dtor,
912 void MicrosoftCXXABI::BuildDestructorSignature(const CXXDestructorDecl *Dtor, in BuildDestructorSignature() argument
1380 const CXXDestructorDecl *Dtor, in EmitVirtualDestructorCall() argument
1388 GlobalDecl GD(Dtor, Dtor_Deleting); in EmitVirtualDestructorCall()
1390 &CGM.getTypes().arrangeCXXDestructor(Dtor, Dtor_Deleting); in EmitVirtualDestructorCall()
1400 CGF.EmitCXXMemberCall(Dtor, CallLoc, Callee, ReturnValueSlot(), This, in EmitVirtualDestructorCall()
DCodeGenModule.cpp592 void CodeGenModule::AddGlobalDtor(llvm::Function *Dtor, int Priority) { in AddGlobalDtor() argument
594 GlobalDtors.push_back(Structor(Priority, Dtor, nullptr)); in AddGlobalDtor()
855 if (const auto *Dtor = dyn_cast_or_null<CXXDestructorDecl>(FD)) { in SetFunctionAttributes() local
856 if (getCXXABI().useThunkForDtorVariant(Dtor, GD.getDtorType())) { in SetFunctionAttributes()
/external/clang/lib/StaticAnalyzer/Core/
DExprEngineCallAndReturn.cpp657 const CXXDestructorCall &Dtor = cast<CXXDestructorCall>(Call); in mayInlineCallKind() local
660 const MemRegion *Target = Dtor.getCXXThisVal().getAsRegion(); in mayInlineCallKind()
726 const CXXDestructorDecl *Dtor = dyn_cast<CXXDestructorDecl>(FD); in isCXXSharedPtrDtor() local
727 if (!Dtor) in isCXXSharedPtrDtor()
730 const CXXRecordDecl *RD = Dtor->getParent(); in isCXXSharedPtrDtor()
DCallEvent.cpp965 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CalleeCtx->getDecl()); in getCaller() local
966 Loc ThisPtr = SVB.getCXXThis(Dtor, CalleeCtx); in getCaller()
975 Trigger = Dtor->getBody(); in getCaller()
977 return getCXXDestructorCall(Dtor, Trigger, ThisVal.getAsRegion(), in getCaller()
DPathDiagnostic.cpp557 const CFGAutomaticObjDtor &Dtor = Source.castAs<CFGAutomaticObjDtor>(); in getLocationForCaller() local
558 return PathDiagnosticLocation::createEnd(Dtor.getTriggerStmt(), in getLocationForCaller()
562 const CFGDeleteDtor &Dtor = Source.castAs<CFGDeleteDtor>(); in getLocationForCaller() local
563 return PathDiagnosticLocation(Dtor.getDeleteExpr(), SM, CallerCtx); in getLocationForCaller()
DExprEngine.cpp575 void ExprEngine::ProcessAutomaticObjDtor(const CFGAutomaticObjDtor Dtor, in ProcessAutomaticObjDtor() argument
578 const VarDecl *varDecl = Dtor.getVarDecl(); in ProcessAutomaticObjDtor()
590 VisitCXXDestructor(varType, Region, Dtor.getTriggerStmt(), /*IsBase=*/ false, in ProcessAutomaticObjDtor()
594 void ExprEngine::ProcessDeleteDtor(const CFGDeleteDtor Dtor, in ProcessDeleteDtor() argument
599 const CXXDeleteExpr *DE = Dtor.getDeleteExpr(); in ProcessDeleteDtor()
609 const CXXDestructorDecl *Dtor = RD->getDestructor(); in ProcessDeleteDtor() local
611 PostImplicitCall PP(Dtor, DE->getLocStart(), LCtx); in ProcessDeleteDtor()
/external/clang/lib/Analysis/
DLiveVariables.cpp461 if (Optional<CFGAutomaticObjDtor> Dtor = in runOnBlock() local
463 val.liveDecls = DSetFact.add(val.liveDecls, Dtor->getVarDecl()); in runOnBlock()
DThreadSafety.cpp2100 bool Dtor = isa<CXXDestructorDecl>(D); in handleCall() local
2102 Analyzer->removeLock(FSet, M, Loc, Dtor, LK_Exclusive, CapDiagKind); in handleCall()
2104 Analyzer->removeLock(FSet, M, Loc, Dtor, LK_Shared, CapDiagKind); in handleCall()
2106 Analyzer->removeLock(FSet, M, Loc, Dtor, LK_Generic, CapDiagKind); in handleCall()
/external/clang/lib/Sema/
DSemaAccess.cpp1588 CXXDestructorDecl *Dtor, in CheckDestructorAccess() argument
1595 AccessSpecifier Access = Dtor->getAccess(); in CheckDestructorAccess()
1599 CXXRecordDecl *NamingClass = Dtor->getParent(); in CheckDestructorAccess()
1603 DeclAccessPair::make(Dtor, Access), in CheckDestructorAccess()
DSemaDeclCXX.cpp3575 if (CXXDestructorDecl *Dtor = LookupDestructor(Constructor->getParent())) { in SetDelegatingInitializer() local
3576 MarkFunctionReferenced(Initializer->getSourceLocation(), Dtor); in SetDelegatingInitializer()
3577 DiagnoseUseOfDecl(Dtor, Initializer->getSourceLocation()); in SetDelegatingInitializer()
4046 CXXDestructorDecl *Dtor = LookupDestructor(FieldClassDecl); in MarkBaseAndMemberDestructorsReferenced() local
4047 assert(Dtor && "No dtor found for FieldClassDecl!"); in MarkBaseAndMemberDestructorsReferenced()
4048 CheckDestructorAccess(Field->getLocation(), Dtor, in MarkBaseAndMemberDestructorsReferenced()
4053 MarkFunctionReferenced(Location, Dtor); in MarkBaseAndMemberDestructorsReferenced()
4054 DiagnoseUseOfDecl(Dtor, Location); in MarkBaseAndMemberDestructorsReferenced()
4075 CXXDestructorDecl *Dtor = LookupDestructor(BaseClassDecl); in MarkBaseAndMemberDestructorsReferenced() local
4076 assert(Dtor && "No dtor found for BaseClassDecl!"); in MarkBaseAndMemberDestructorsReferenced()
[all …]
DSemaType.cpp5436 CXXDestructorDecl *Dtor = RD->getDestructor(); in RequireLiteralType() local
5437 assert(Dtor && "class has literal fields and bases but no dtor?"); in RequireLiteralType()
5438 if (!Dtor) in RequireLiteralType()
5441 Diag(Dtor->getLocation(), Dtor->isUserProvided() ? in RequireLiteralType()
5444 if (!Dtor->isUserProvided()) in RequireLiteralType()
5445 SpecialMemberIsTrivial(Dtor, CXXDestructor, /*Diagnose*/true); in RequireLiteralType()
/external/chromium_org/components/nacl/loader/
Dnacl_ipc_adapter.cc119 (*nrcp->vtbl->Dtor)(nrcp); in QuotaInterfaceDtor()
/external/clang/lib/AST/
DDeclCXX.cpp1269 CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(R.front()); in getDestructor() local
1270 return Dtor; in getDestructor()

12