Searched refs:Dtor (Results 1 - 25 of 33) sorted by relevance

12

/external/clang/test/SemaCXX/
H A Ddeprecated.cpp68 struct Dtor { struct in namespace:DeprecatedCopy
69 ~Dtor();
70 // expected-warning@-1 {{definition of implicit copy constructor for 'Dtor' is deprecated because it has a user-declared destructor}}
71 // expected-warning@-2 {{definition of implicit copy assignment operator for 'Dtor' is deprecated because it has a user-declared destructor}}
73 Dtor c1, c2(c1); // expected-note {{implicit copy constructor for 'Dtor' first required here}}
74 void g() { c1 = c2; } // expected-note {{implicit copy assignment operator for 'Dtor' first required here}}
/external/clang/test/CXX/class/class.union/
H A Dp1.cpp34 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/compiler-rt/test/asan/TestCases/Posix/
H A Dtsd_dtor_leak.cc20 void Dtor(void *tsd) { function
27 assert(0 == pthread_key_create(&tsd_key, Dtor));
/external/clang/test/Analysis/
H A Dtemporaries.cpp115 struct Dtor { struct in namespace:destructors
116 ~Dtor();
119 extern bool check(const Dtor &);
124 if (coin() && (coin() || coin() || check(Dtor()))) {
125 Dtor();
303 // []() { check(NoReturnDtor()); } != nullptr || check(Dtor());
334 // ~Dtor should run before ~NoReturnDtor() because construction order is
336 if (!value || check((NoReturnDtor(), Dtor())) || value) {
377 check(Dtor()) &&
378 (check(NoReturnDtor()) || check(NoReturnDtor())) && check(Dtor());
[all...]
H A Ddtor.cpp234 class Dtor { class in namespace:DestructorsShouldNotAffectReturnValues
236 ~Dtor() {
242 Dtor d;
/external/clang/lib/StaticAnalyzer/Checkers/
H A DDynamicTypePropagation.cpp86 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/llvm/tools/lli/
H A DOrcLazyJIT.h88 for (auto Dtor : orc::getDestructors(*M))
89 DtorNames.push_back(mangle(Dtor.Func->getName()));
/external/clang/lib/CodeGen/
H A DCGClass.cpp1337 const CXXDestructorDecl *Dtor) {
1338 if (!Dtor->hasTrivialBody())
1342 const CXXRecordDecl *ClassDecl = Dtor->getParent();
1352 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CurGD.getDecl()); local
1360 EnterDtorCleanups(Dtor, Dtor_Deleting);
1361 EmitCXXDestructorCall(Dtor, Dtor_Complete, /*ForVirtualBase=*/false,
1367 Stmt *Body = Dtor->getBody();
1395 EnterDtorCleanups(Dtor, Dtor_Complete);
1398 EmitCXXDestructorCall(Dtor, Dtor_Base, /*ForVirtualBase=*/false,
1411 EnterDtorCleanups(Dtor, Dtor_Bas
1336 CanSkipVTablePointerInitialization(ASTContext &Context, const CXXDestructorDecl *Dtor) argument
1461 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CGF.CurCodeDecl); variable
1484 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CGF.CurCodeDecl); variable
1868 const CXXDestructorDecl *Dtor; member in struct:__anon944::CallDelegatingCtorDtor
1922 const CXXDestructorDecl *Dtor; member in struct:__anon945::CallLocalDtor
[all...]
H A DCGCXXABI.h216 const CXXDestructorDecl *Dtor) = 0;
279 virtual bool useThunkForDtorVariant(const CXXDestructorDecl *Dtor,
373 EmitVirtualDestructorCall(CodeGenFunction &CGF, const CXXDestructorDecl *Dtor,
496 /// \param Dtor - a function taking a single pointer argument
499 llvm::Constant *Dtor,
H A DCGExprCXX.cpp210 if (const auto *Dtor = dyn_cast<CXXDestructorDecl>(CalleeDecl))
212 Dtor, StructorType::Complete);
230 if (const CXXDestructorDecl *Dtor = dyn_cast<CXXDestructorDecl>(MD)) {
236 *this, Dtor, Dtor_Complete, This, cast<CXXMemberCallExpr>(CE));
242 CGM.getAddrOfCXXStructor(Dtor, StructorType::Complete, FInfo, Ty);
1437 const CXXDestructorDecl *Dtor = nullptr; local
1441 Dtor = RD->getDestructor();
1443 if (Dtor->isVirtual()) {
1445 Dtor);
1458 if (Dtor)
[all...]
H A DCGOpenMPRuntime.h287 /// \param Dtor Pointer to a global destructor function for \a VD.
291 llvm::Value *Dtor, SourceLocation Loc);
H A DItaniumCXXABI.cpp115 const CXXDestructorDecl *Dtor) override;
165 bool useThunkForDtorVariant(const CXXDestructorDecl *Dtor,
210 const CXXDestructorDecl *Dtor,
877 const CXXDestructorDecl *Dtor) {
905 EmitVirtualDestructorCall(CGF, Dtor, DtorType, Ptr, /*CE=*/nullptr);
963 llvm::Constant *Dtor = nullptr; local
968 Dtor = CGM.getAddrOfCXXStructor(DtorD, StructorType::Complete);
969 Dtor = llvm::ConstantExpr::getBitCast(Dtor, CGM.Int8PtrTy);
972 if (!Dtor) Dto
873 emitVirtualObjectDelete(CodeGenFunction &CGF, const CXXDeleteExpr *DE, llvm::Value *Ptr, QualType ElementType, const CXXDestructorDecl *Dtor) argument
1456 EmitVirtualDestructorCall( CodeGenFunction &CGF, const CXXDestructorDecl *Dtor, CXXDtorType DtorType, llvm::Value *This, const CXXMemberCallExpr *CE) argument
[all...]
H A DCGOpenMPRuntime.cpp810 llvm::Value *CopyCtor, llvm::Value *Dtor, SourceLocation Loc) {
820 Ctor, CopyCtor, Dtor};
833 llvm::Value *Ctor = nullptr, *CopyCtor = nullptr, *Dtor = nullptr; local
894 Dtor = Fn;
897 if (!Ctor && !Dtor)
913 if (Dtor == nullptr) {
916 Dtor = llvm::Constant::getNullValue(DtorTy);
928 emitThreadPrivateVarInit(InitCGF, VDAddr, Ctor, CopyCtor, Dtor, Loc);
932 emitThreadPrivateVarInit(*CGF, VDAddr, Ctor, CopyCtor, Dtor, Loc);
808 emitThreadPrivateVarInit( CodeGenFunction &CGF, llvm::Value *VDAddr, llvm::Value *Ctor, llvm::Value *CopyCtor, llvm::Value *Dtor, SourceLocation Loc) argument
H A DMicrosoftCXXABI.cpp76 const CXXDestructorDecl *Dtor) override;
160 bool useThunkForDtorVariant(const CXXDestructorDecl *Dtor,
228 const CXXDestructorDecl *Dtor,
287 llvm::Constant *Dtor, llvm::Constant *Addr) override;
771 const CXXDestructorDecl *Dtor) {
777 EmitVirtualDestructorCall(CGF, Dtor, DtorType, Ptr, /*CE=*/nullptr);
1607 CodeGenFunction &CGF, const CXXDestructorDecl *Dtor, CXXDtorType DtorType,
1614 GlobalDecl GD(Dtor, Dtor_Deleting);
1616 Dtor, StructorType::Deleting);
1626 RValue RV = CGF.EmitCXXStructorCall(Dtor, Calle
767 emitVirtualObjectDelete(CodeGenFunction &CGF, const CXXDeleteExpr *DE, llvm::Value *Ptr, QualType ElementType, const CXXDestructorDecl *Dtor) argument
1606 EmitVirtualDestructorCall( CodeGenFunction &CGF, const CXXDestructorDecl *Dtor, CXXDtorType DtorType, llvm::Value *This, const CXXMemberCallExpr *CE) argument
1938 emitGlobalDtorWithTLRegDtor(CodeGenFunction &CGF, const VarDecl &VD, llvm::Constant *Dtor, llvm::Constant *Addr) argument
1956 registerGlobalDtor(CodeGenFunction &CGF, const VarDecl &D, llvm::Constant *Dtor, llvm::Constant *Addr) argument
[all...]
H A DCGDecl.cpp421 const CXXDestructorDecl *Dtor,
423 : Dtor(Dtor), NRVOFlag(NRVOFlag), Loc(addr) {}
425 const CXXDestructorDecl *Dtor; member in struct:__anon949::DestroyNRVOVariable
443 CGF.EmitCXXDestructorCall(Dtor, Dtor_Complete,
420 DestroyNRVOVariable(llvm::Value *addr, const CXXDestructorDecl *Dtor, llvm::Value *NRVOFlag) argument
H A DCodeGenFunction.h410 void PushDestructorCleanup(const CXXDestructorDecl *Dtor,
1311 void EnterDtorCleanups(const CXXDestructorDecl *Dtor, CXXDtorType Type);
2682 llvm::Constant *createAtExitStub(const VarDecl &VD, llvm::Constant *Dtor,
/external/clang/lib/StaticAnalyzer/Core/
H A DExprEngineCallAndReturn.cpp657 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 DCallEvent.cpp965 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 DPathDiagnostic.cpp560 const CFGAutomaticObjDtor &Dtor = Source.castAs<CFGAutomaticObjDtor>(); local
561 return PathDiagnosticLocation::createEnd(Dtor.getTriggerStmt(),
565 const CFGDeleteDtor &Dtor = Source.castAs<CFGDeleteDtor>(); local
566 return PathDiagnosticLocation(Dtor.getDeleteExpr(), SM, CallerCtx);
H A DExprEngine.cpp584 void ExprEngine::ProcessAutomaticObjDtor(const CFGAutomaticObjDtor Dtor, argument
587 const VarDecl *varDecl = Dtor.getVarDecl();
599 VisitCXXDestructor(varType, Region, Dtor.getTriggerStmt(), /*IsBase=*/ false,
603 void ExprEngine::ProcessDeleteDtor(const CFGDeleteDtor Dtor, argument
608 const CXXDeleteExpr *DE = Dtor.getDeleteExpr();
618 const CXXDestructorDecl *Dtor = RD->getDestructor(); local
620 PostImplicitCall PP(Dtor, DE->getLocStart(), LCtx);
/external/clang/lib/Analysis/
H A DLiveVariables.cpp457 if (Optional<CFGAutomaticObjDtor> Dtor =
459 val.liveDecls = DSetFact.add(val.liveDecls, Dtor->getVarDecl());
H A DThreadSafety.cpp1822 bool Dtor = isa<CXXDestructorDecl>(D);
1824 Analyzer->removeLock(FSet, M, Loc, Dtor, LK_Exclusive, CapDiagKind);
1826 Analyzer->removeLock(FSet, M, Loc, Dtor, LK_Shared, CapDiagKind);
1828 Analyzer->removeLock(FSet, M, Loc, Dtor, LK_Generic, CapDiagKind);
/external/clang/lib/Sema/
H A DSemaAccess.cpp1588 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 DSemaType.cpp5445 CXXDestructorDecl *Dtor = RD->getDestructor(); local
5446 assert(Dtor && "class has literal fields and bases but no dtor?");
5447 if (!Dtor)
5450 Diag(Dtor->getLocation(), Dtor->isUserProvided() ?
5453 if (!Dtor->isUserProvided())
5454 SpecialMemberIsTrivial(Dtor, CXXDestructor, /*Diagnose*/true);
/external/clang/lib/AST/
H A DDeclCXX.cpp1314 CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(R.front());
1315 return Dtor;

Completed in 615 milliseconds

12