/external/compiler-rt/test/asan/TestCases/Linux/ |
H A D | tsd_dtor_leak.cc | 20 void Dtor(void *tsd) { function 27 assert(0 == pthread_key_create(&tsd_key, Dtor));
|
/external/clang/test/SemaCXX/ |
H A D | deprecated.cpp | 62 struct Dtor { struct in namespace:DeprecatedCopy 63 ~Dtor(); 64 // expected-warning@-1 {{definition of implicit copy constructor for 'Dtor' is deprecated because it has a user-declared destructor}} 65 // expected-warning@-2 {{definition of implicit copy assignment operator for 'Dtor' is deprecated because it has a user-declared destructor}} 67 Dtor c1, c2(c1); // expected-note {{implicit copy constructor for 'Dtor' first required here}} 68 void g() { c1 = c2; } // expected-note {{implicit copy assignment operator for 'Dtor' first required here}}
|
/external/clang/test/CXX/class/class.union/ |
H A D | p1.cpp | 34 class Dtor { class 35 ~Dtor() { abort(); } // expected-note 2 {{because type 'Dtor' has a user-provided destructor}} expected-note 2{{here}} 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 destructor}} 131 Either<int,Dtor> dtor(0); // expected-note {{in instantiation of template}}
|
/external/clang/test/Analysis/ |
H A D | dtor.cpp | 234 class Dtor { class in namespace:DestructorsShouldNotAffectReturnValues 236 ~Dtor() { 242 Dtor d;
|
H A D | temporaries.cpp | 115 struct Dtor { struct 116 ~Dtor(); 119 extern bool check(const Dtor &); 123 if (coin() && (coin() || coin() || check(Dtor()))) { 124 Dtor();
|
/external/clang/lib/StaticAnalyzer/Core/ |
H A D | CallEvent.cpp | 965 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CalleeCtx->getDecl()); local 966 Loc ThisPtr = SVB.getCXXThis(Dtor, CalleeCtx); 975 Trigger = Dtor->getBody(); 977 return getCXXDestructorCall(Dtor, Trigger, ThisVal.getAsRegion(),
|
H A D | ExprEngineCallAndReturn.cpp | 657 const CXXDestructorCall &Dtor = cast<CXXDestructorCall>(Call); local 660 const MemRegion *Target = Dtor.getCXXThisVal().getAsRegion(); 726 const CXXDestructorDecl *Dtor = dyn_cast<CXXDestructorDecl>(FD); local 727 if (!Dtor) 730 const CXXRecordDecl *RD = Dtor->getParent();
|
H A D | PathDiagnostic.cpp | 557 const CFGAutomaticObjDtor &Dtor = Source.castAs<CFGAutomaticObjDtor>(); local 558 return PathDiagnosticLocation::createEnd(Dtor.getTriggerStmt(), 562 const CFGDeleteDtor &Dtor = Source.castAs<CFGDeleteDtor>(); local 563 return PathDiagnosticLocation(Dtor.getDeleteExpr(), SM, CallerCtx);
|
H A D | ExprEngine.cpp | 575 void ExprEngine::ProcessAutomaticObjDtor(const CFGAutomaticObjDtor Dtor, argument 578 const VarDecl *varDecl = Dtor.getVarDecl(); 590 VisitCXXDestructor(varType, Region, Dtor.getTriggerStmt(), /*IsBase=*/ false, 594 void ExprEngine::ProcessDeleteDtor(const CFGDeleteDtor Dtor, argument 599 const CXXDeleteExpr *DE = Dtor.getDeleteExpr(); 609 const CXXDestructorDecl *Dtor = RD->getDestructor(); local 611 PostImplicitCall PP(Dtor, DE->getLocStart(), LCtx);
|
/external/clang/include/clang/AST/ |
H A D | ExprCXX.h | 1000 void setDestructor(const CXXDestructorDecl *Dtor) { argument 1001 Destructor = Dtor;
|
/external/clang/lib/CodeGen/ |
H A D | CGDecl.cpp | 383 const CXXDestructorDecl *Dtor, 385 : Dtor(Dtor), NRVOFlag(NRVOFlag), Loc(addr) {} 387 const CXXDestructorDecl *Dtor; member in struct:__anon17823::DestroyNRVOVariable 405 CGF.EmitCXXDestructorCall(Dtor, Dtor_Complete, 382 DestroyNRVOVariable(llvm::Value *addr, const CXXDestructorDecl *Dtor, llvm::Value *NRVOFlag) argument
|
H A D | CGException.cpp | 455 llvm::Constant *Dtor = nullptr; local 460 Dtor = CGM.GetAddrOfCXXDestructor(DtorD, Dtor_Complete); 461 Dtor = llvm::ConstantExpr::getBitCast(Dtor, Int8PtrTy); 464 if (!Dtor) Dtor = llvm::Constant::getNullValue(Int8PtrTy); 466 llvm::Value *args[] = { ExceptionPtr, TypeInfo, Dtor };
|
H A D | CGExprCXX.cpp | 162 if (const CXXDestructorDecl *Dtor = dyn_cast<CXXDestructorDecl>(CalleeDecl)) 163 FInfo = &CGM.getTypes().arrangeCXXDestructor(Dtor, 182 if (const CXXDestructorDecl *Dtor = dyn_cast<CXXDestructorDecl>(MD)) { 187 CGM.getCXXABI().EmitVirtualDestructorCall(*this, Dtor, Dtor_Complete, 195 Callee = CGM.GetAddrOfCXXDestructor(Dtor, Dtor_Complete, FInfo, Ty); 1397 const CXXDestructorDecl *Dtor = nullptr; local 1401 Dtor = RD->getDestructor(); 1403 if (Dtor->isVirtual()) { 1420 CGF.CGM.getCXXABI().EmitVirtualDestructorCall(CGF, Dtor, DtorType, 1438 if (Dtor) [all...] |
H A D | CGClass.cpp | 1245 const CXXDestructorDecl *Dtor) { 1246 if (!Dtor->hasTrivialBody()) 1250 const CXXRecordDecl *ClassDecl = Dtor->getParent(); 1260 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CurGD.getDecl()); local 1268 EnterDtorCleanups(Dtor, Dtor_Deleting); 1269 EmitCXXDestructorCall(Dtor, Dtor_Complete, /*ForVirtualBase=*/false, 1275 Stmt *Body = Dtor->getBody(); 1299 EnterDtorCleanups(Dtor, Dtor_Complete); 1302 EmitCXXDestructorCall(Dtor, Dtor_Base, /*ForVirtualBase=*/false, 1315 EnterDtorCleanups(Dtor, Dtor_Bas 1244 CanSkipVTablePointerInitialization(ASTContext &Context, const CXXDestructorDecl *Dtor) argument 1365 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CGF.CurCodeDecl); variable 1388 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CGF.CurCodeDecl); variable 1776 const CXXDestructorDecl *Dtor; member in struct:__anon17818::CallDelegatingCtorDtor 1830 const CXXDestructorDecl *Dtor; member in struct:__anon17819::CallLocalDtor [all...] |
H A D | CGCall.cpp | 2315 const CXXDestructorDecl *Dtor = Ty->getAsCXXRecordDecl()->getDestructor(); variable 2316 assert(!Dtor->isTrivial()); 2317 CGF.EmitCXXDestructorCall(Dtor, Dtor_Complete, /*for vbase*/ false,
|
H A D | CodeGenModule.cpp | 592 void CodeGenModule::AddGlobalDtor(llvm::Function *Dtor, int Priority) { argument 594 GlobalDtors.push_back(Structor(Priority, Dtor, nullptr)); 855 if (const auto *Dtor = dyn_cast_or_null<CXXDestructorDecl>(FD)) { 856 if (getCXXABI().useThunkForDtorVariant(Dtor, GD.getDtorType())) {
|
H A D | ItaniumCXXABI.cpp | 147 void BuildDestructorSignature(const CXXDestructorDecl *Dtor, 151 bool useThunkForDtorVariant(const CXXDestructorDecl *Dtor, 196 const CXXDestructorDecl *Dtor, 1104 void ItaniumCXXABI::BuildDestructorSignature(const CXXDestructorDecl *Dtor, argument 1111 // HasThisReturn(GlobalDecl(Dtor, Type)) is true 1114 if (Type == Dtor_Base && Dtor->getParent()->getNumVBases() != 0) 1343 const CXXDestructorDecl *Dtor, 1350 = &CGM.getTypes().arrangeCXXDestructor(Dtor, DtorType); 1353 getVirtualFunctionPointer(CGF, GlobalDecl(Dtor, DtorType), This, Ty); 1355 CGF.EmitCXXMemberCall(Dtor, CallLo 1342 EmitVirtualDestructorCall(CodeGenFunction &CGF, const CXXDestructorDecl *Dtor, CXXDtorType DtorType, SourceLocation CallLoc, llvm::Value *This) argument [all...] |
H A D | MicrosoftCXXABI.cpp | 139 void BuildDestructorSignature(const CXXDestructorDecl *Dtor, 145 bool useThunkForDtorVariant(const CXXDestructorDecl *Dtor, 213 const CXXDestructorDecl *Dtor, 912 void MicrosoftCXXABI::BuildDestructorSignature(const CXXDestructorDecl *Dtor, argument 1380 const CXXDestructorDecl *Dtor, 1388 GlobalDecl GD(Dtor, Dtor_Deleting); 1390 &CGM.getTypes().arrangeCXXDestructor(Dtor, Dtor_Deleting); 1400 CGF.EmitCXXMemberCall(Dtor, CallLoc, Callee, ReturnValueSlot(), This, 1379 EmitVirtualDestructorCall(CodeGenFunction &CGF, const CXXDestructorDecl *Dtor, CXXDtorType DtorType, SourceLocation CallLoc, llvm::Value *This) argument
|
/external/clang/lib/Sema/ |
H A D | SemaAccess.cpp | 1588 CXXDestructorDecl *Dtor, 1595 AccessSpecifier Access = Dtor->getAccess(); 1599 CXXRecordDecl *NamingClass = Dtor->getParent(); 1603 DeclAccessPair::make(Dtor, Access), 1587 CheckDestructorAccess(SourceLocation Loc, CXXDestructorDecl *Dtor, const PartialDiagnostic &PDiag, QualType ObjectTy) argument
|
H A D | SemaType.cpp | 5436 CXXDestructorDecl *Dtor = RD->getDestructor(); local 5437 assert(Dtor && "class has literal fields and bases but no dtor?"); 5438 if (!Dtor) 5441 Diag(Dtor->getLocation(), Dtor->isUserProvided() ? 5444 if (!Dtor->isUserProvided()) 5445 SpecialMemberIsTrivial(Dtor, CXXDestructor, /*Diagnose*/true);
|
H A D | SemaDeclCXX.cpp | 3575 if (CXXDestructorDecl *Dtor = LookupDestructor(Constructor->getParent())) { 3576 MarkFunctionReferenced(Initializer->getSourceLocation(), Dtor); 3577 DiagnoseUseOfDecl(Dtor, Initializer->getSourceLocation()); 4046 CXXDestructorDecl *Dtor = LookupDestructor(FieldClassDecl); local 4047 assert(Dtor && "No dtor found for FieldClassDecl!"); 4048 CheckDestructorAccess(Field->getLocation(), Dtor, 4053 MarkFunctionReferenced(Location, Dtor); 4054 DiagnoseUseOfDecl(Dtor, Location); 4075 CXXDestructorDecl *Dtor = LookupDestructor(BaseClassDecl); local 4076 assert(Dtor 4105 CXXDestructorDecl *Dtor = LookupDestructor(BaseClassDecl); local 5053 const CXXDestructorDecl *Dtor = Checks[i].first; local [all...] |
/external/clang/lib/Analysis/ |
H A D | CFG.cpp | 1114 const CXXDestructorDecl *Dtor = Ty->getAsCXXRecordDecl()->getDestructor(); local 1115 if (Dtor->isNoReturn()) 3598 const CXXDestructorDecl *Dtor = E->getTemporary()->getDestructor(); local 3599 if (Dtor->isNoReturn()) { 4024 OS << "(Temp Dtor) ";
|
H A D | ThreadSafety.cpp | 2100 bool Dtor = isa<CXXDestructorDecl>(D); local 2102 Analyzer->removeLock(FSet, M, Loc, Dtor, LK_Exclusive, CapDiagKind); 2104 Analyzer->removeLock(FSet, M, Loc, Dtor, LK_Shared, CapDiagKind); 2106 Analyzer->removeLock(FSet, M, Loc, Dtor, LK_Generic, CapDiagKind);
|