/external/clang/test/SemaCXX/ |
H A D | deprecated.cpp | 59 struct Dtor { struct in namespace:DeprecatedCopy 60 ~Dtor(); 61 // expected-warning@-1 {{definition of implicit copy constructor for 'Dtor' is deprecated because it has a user-declared destructor}} 62 // expected-warning@-2 {{definition of implicit copy assignment operator for 'Dtor' is deprecated because it has a user-declared destructor}} 64 Dtor c1, c2(c1); // expected-note {{implicit copy constructor for 'Dtor' first required here}} 65 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 | temporaries.cpp | 114 struct Dtor { struct 115 ~Dtor(); 118 extern bool check(const Dtor &); 121 if (coin() && (coin() || coin() || check(Dtor()))) { 122 Dtor();
|
H A D | dtor.cpp | 234 class Dtor { class in namespace:DestructorsShouldNotAffectReturnValues 236 ~Dtor() { 242 Dtor d;
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
H A D | DynamicTypePropagation.cpp | 86 if (const CXXDestructorCall *Dtor = dyn_cast<CXXDestructorCall>(&Call)) { 88 if (!Dtor->isBaseDestructor()) 91 const MemRegion *Target = Dtor->getCXXThisVal().getAsRegion(); 95 const Decl *D = Dtor->getDecl();
|
/external/clang/lib/CodeGen/ |
H A D | CGClass.cpp | 1220 const CXXDestructorDecl *Dtor) { 1221 if (!Dtor->hasTrivialBody()) 1225 const CXXRecordDecl *ClassDecl = Dtor->getParent(); 1239 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CurGD.getDecl()); local 1247 EnterDtorCleanups(Dtor, Dtor_Deleting); 1248 EmitCXXDestructorCall(Dtor, Dtor_Complete, /*ForVirtualBase=*/false, 1254 Stmt *Body = Dtor->getBody(); 1278 EnterDtorCleanups(Dtor, Dtor_Complete); 1281 EmitCXXDestructorCall(Dtor, Dtor_Base, /*ForVirtualBase=*/false, 1291 EnterDtorCleanups(Dtor, Dtor_Bas 1219 CanSkipVTablePointerInitialization(ASTContext &Context, const CXXDestructorDecl *Dtor) argument 1344 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CGF.CurCodeDecl); local 1367 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CGF.CurCodeDecl); local 1756 const CXXDestructorDecl *Dtor; member in struct:__anon16099::CallDelegatingCtorDtor 1822 const CXXDestructorDecl *Dtor; member in struct:__anon16100::CallLocalDtor [all...] |
H A D | CGCXXABI.h | 243 /// 'this' if HasThisReturn(GlobalDecl(Dtor, T)) is true or 'void' otherwise 245 virtual void BuildDestructorSignature(const CXXDestructorDecl *Dtor, 253 virtual bool useThunkForDtorVariant(const CXXDestructorDecl *Dtor, 284 const CXXDestructorDecl *Dtor,
|
H A D | ItaniumCXXABI.cpp | 117 void BuildDestructorSignature(const CXXDestructorDecl *Dtor, 122 bool useThunkForDtorVariant(const CXXDestructorDecl *Dtor, argument 146 const CXXDestructorDecl *Dtor, 795 void ItaniumCXXABI::BuildDestructorSignature(const CXXDestructorDecl *Dtor, argument 802 // HasThisReturn(GlobalDecl(Dtor, Type)) is true 805 if (Type == Dtor_Base && Dtor->getParent()->getNumVBases() != 0) 889 const CXXDestructorDecl *Dtor, 896 = &CGM.getTypes().arrangeCXXDestructor(Dtor, DtorType); 899 = CGF.BuildVirtualCall(GlobalDecl(Dtor, DtorType), This, Ty); 901 CGF.EmitCXXMemberCall(Dtor, CallLo 888 EmitVirtualDestructorCall(CodeGenFunction &CGF, const CXXDestructorDecl *Dtor, CXXDtorType DtorType, SourceLocation CallLoc, llvm::Value *This) argument [all...] |
H A D | MicrosoftCXXABI.cpp | 103 void BuildDestructorSignature(const CXXDestructorDecl *Dtor, 109 bool useThunkForDtorVariant(const CXXDestructorDecl *Dtor, argument 130 const CXXDestructorDecl *Dtor, 406 void MicrosoftCXXABI::BuildDestructorSignature(const CXXDestructorDecl *Dtor, argument 518 const CXXDestructorDecl *Dtor, 527 = &CGM.getTypes().arrangeCXXDestructor(Dtor, Dtor_Deleting); 530 = CGF.BuildVirtualCall(GlobalDecl(Dtor, Dtor_Deleting), This, Ty); 537 CGF.EmitCXXMemberCall(Dtor, CallLoc, Callee, ReturnValueSlot(), This, 517 EmitVirtualDestructorCall(CodeGenFunction &CGF, const CXXDestructorDecl *Dtor, CXXDtorType DtorType, SourceLocation CallLoc, llvm::Value *This) argument
|
H A D | CGExprCXX.cpp | 254 if (const CXXDestructorDecl *Dtor = dyn_cast<CXXDestructorDecl>(CalleeDecl)) 255 FInfo = &CGM.getTypes().arrangeCXXDestructor(Dtor, 274 if (const CXXDestructorDecl *Dtor = dyn_cast<CXXDestructorDecl>(MD)) { 279 CGM.getCXXABI().EmitVirtualDestructorCall(*this, Dtor, Dtor_Complete, 287 Callee = CGM.GetAddrOfCXXDestructor(Dtor, Dtor_Complete, FInfo, Ty); 1410 const CXXDestructorDecl *Dtor = 0; local 1414 Dtor = RD->getDestructor(); 1416 if (Dtor->isVirtual()) { 1433 CGF.CGM.getCXXABI().EmitVirtualDestructorCall(CGF, Dtor, DtorType, 1451 if (Dtor) [all...] |
H A D | CGException.cpp | 468 llvm::Constant *Dtor = 0; local 473 Dtor = CGM.GetAddrOfCXXDestructor(DtorD, Dtor_Complete); 474 Dtor = llvm::ConstantExpr::getBitCast(Dtor, Int8PtrTy); 477 if (!Dtor) Dtor = llvm::Constant::getNullValue(Int8PtrTy); 479 llvm::Value *args[] = { ExceptionPtr, TypeInfo, Dtor };
|
H A D | CGDecl.cpp | 378 const CXXDestructorDecl *Dtor, 380 : Dtor(Dtor), NRVOFlag(NRVOFlag), Loc(addr) {} 382 const CXXDestructorDecl *Dtor; member in struct:__anon16104::DestroyNRVOVariable 400 CGF.EmitCXXDestructorCall(Dtor, Dtor_Complete, 377 DestroyNRVOVariable(llvm::Value *addr, const CXXDestructorDecl *Dtor, llvm::Value *NRVOFlag) argument
|
H A D | CodeGenModule.h | 1061 void AddGlobalDtor(llvm::Function *Dtor, int Priority=65535);
|
/external/clang/lib/StaticAnalyzer/Core/ |
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 | CallEvent.cpp | 953 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CalleeCtx->getDecl()); local 954 Loc ThisPtr = SVB.getCXXThis(Dtor, CalleeCtx); 961 Trigger = Dtor->getBody(); 963 return getCXXDestructorCall(Dtor, Trigger, ThisVal.getAsRegion(),
|
H A D | PathDiagnostic.cpp | 559 const CFGAutomaticObjDtor &Dtor = Source.castAs<CFGAutomaticObjDtor>(); local 560 return PathDiagnosticLocation::createEnd(Dtor.getTriggerStmt(),
|
H A D | ExprEngine.cpp | 546 void ExprEngine::ProcessAutomaticObjDtor(const CFGAutomaticObjDtor Dtor, argument 549 const VarDecl *varDecl = Dtor.getVarDecl(); 561 VisitCXXDestructor(varType, Region, Dtor.getTriggerStmt(), /*IsBase=*/ false,
|
/external/clang/lib/Analysis/ |
H A D | LiveVariables.cpp | 477 if (Optional<CFGAutomaticObjDtor> Dtor = 479 val.liveDecls = DSetFact.add(val.liveDecls, Dtor->getVarDecl());
|
H A D | CFG.cpp | 847 const CXXDestructorDecl *Dtor = Ty->getAsCXXRecordDecl()->getDestructor(); local 848 if (Dtor->isNoReturn()) 3279 const CXXDestructorDecl *Dtor = E->getTemporary()->getDestructor(); local 3280 if (Dtor->isNoReturn())
|
H A D | ThreadSafety.cpp | 2057 bool Dtor = isa<CXXDestructorDecl>(D); local 2059 Analyzer->removeLock(FSet, LocksToRemove[i], Loc, Dtor);
|
/external/clang/lib/Sema/ |
H A D | SemaAccess.cpp | 1598 CXXDestructorDecl *Dtor, 1605 AccessSpecifier Access = Dtor->getAccess(); 1609 CXXRecordDecl *NamingClass = Dtor->getParent(); 1613 DeclAccessPair::make(Dtor, Access), 1597 CheckDestructorAccess(SourceLocation Loc, CXXDestructorDecl *Dtor, const PartialDiagnostic &PDiag, QualType ObjectTy) argument
|
H A D | SemaDeclCXX.cpp | 3306 if (CXXDestructorDecl *Dtor = LookupDestructor(Constructor->getParent())) { 3307 MarkFunctionReferenced(Initializer->getSourceLocation(), Dtor); 3308 DiagnoseUseOfDecl(Dtor, Initializer->getSourceLocation()); 3776 CXXDestructorDecl *Dtor = LookupDestructor(FieldClassDecl); local 3777 assert(Dtor && "No dtor found for FieldClassDecl!"); 3778 CheckDestructorAccess(Field->getLocation(), Dtor, 3783 MarkFunctionReferenced(Location, Dtor); 3784 DiagnoseUseOfDecl(Dtor, Location); 3806 CXXDestructorDecl *Dtor = LookupDestructor(BaseClassDecl); local 3807 assert(Dtor 3838 CXXDestructorDecl *Dtor = LookupDestructor(BaseClassDecl); local 8450 const CXXDestructorDecl *Dtor = local [all...] |
H A D | SemaType.cpp | 5165 CXXDestructorDecl *Dtor = RD->getDestructor(); local 5166 assert(Dtor && "class has literal fields and bases but no dtor?"); 5167 if (!Dtor) 5170 Diag(Dtor->getLocation(), Dtor->isUserProvided() ? 5173 if (!Dtor->isUserProvided()) 5174 SpecialMemberIsTrivial(Dtor, CXXDestructor, /*Diagnose*/true);
|
H A D | SemaExprCXX.cpp | 2246 if (CXXDestructorDecl *Dtor = LookupDestructor(PointeeRD)) { 2248 const_cast<CXXDestructorDecl*>(Dtor)); 2249 if (DiagnoseUseOfDecl(Dtor, StartLoc)) 2298 if (CXXDestructorDecl *Dtor = LookupDestructor(PointeeRD)) { 2299 CheckDestructorAccess(Ex.get()->getExprLoc(), Dtor,
|
/external/clang/lib/AST/ |
H A D | DeclCXX.cpp | 1179 CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(R.front()); 1180 return Dtor;
|