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

12

/external/clang/test/SemaCXX/
H A Ddeprecated.cpp83 struct Dtor { struct in namespace:DeprecatedCopy
84 ~Dtor();
85 // expected-warning@-1 {{definition of implicit copy constructor for 'Dtor' is deprecated because it has a user-declared destructor}}
86 // expected-warning@-2 {{definition of implicit copy assignment operator for 'Dtor' is deprecated because it has a user-declared destructor}}
88 Dtor c1, c2(c1); // expected-note {{implicit copy constructor for 'Dtor' first required here}}
89 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/libcxxabi/src/
H A Dcxa_thread_atexit.cpp17 using Dtor = void(*)(void*);
25 int __cxa_thread_atexit_impl(Dtor, void*, void*);
59 Dtor dtor;
106 _LIBCXXABI_FUNC_VIS int __cxa_thread_atexit(Dtor dtor, void* obj, void* dso_symbol) throw() {
/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();
302 []() { check(NoReturnDtor()); } != nullptr || check(Dtor());
328 // ~Dtor should run before ~NoReturnDtor() because construction order is
330 if (!value || check((NoReturnDtor(), Dtor())) || value) {
371 check(Dtor()) &&
372 (check(NoReturnDtor()) || check(NoReturnDtor())) && check(Dtor());
[all...]
H A Ddtor.cpp234 class Dtor { class in namespace:DestructorsShouldNotAffectReturnValues
236 ~Dtor() {
242 Dtor d;
/external/llvm/tools/lli/
H A DOrcLazyJIT.h75 for (auto Dtor : orc::getDestructors(*M))
76 DtorNames.push_back(mangle(Dtor.Func->getName()));
/external/clang/lib/CodeGen/
H A DCGClass.cpp1485 const CXXDestructorDecl *Dtor) {
1486 const CXXRecordDecl *ClassDecl = Dtor->getParent();
1490 if (!Dtor->hasTrivialBody())
1503 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CurGD.getDecl()); local
1506 Stmt *Body = Dtor->getBody();
1515 EnterDtorCleanups(Dtor, Dtor_Deleting);
1516 EmitCXXDestructorCall(Dtor, Dtor_Complete, /*ForVirtualBase=*/false,
1548 EnterDtorCleanups(Dtor, Dtor_Complete);
1551 EmitCXXDestructorCall(Dtor, Dtor_Base, /*ForVirtualBase=*/false,
1561 EnterDtorCleanups(Dtor, Dtor_Bas
1484 CanSkipVTablePointerInitialization(CodeGenFunction &CGF, const CXXDestructorDecl *Dtor) argument
1619 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CGF.CurCodeDecl); variable
1643 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CGF.CurCodeDecl); variable
1694 const CXXDestructorDecl *Dtor; member in class:__anon1563::final
1697 SanitizeDtorMembers(const CXXDestructorDecl *Dtor) argument
1782 const CXXDestructorDecl *Dtor; member in class:__anon1563::final
1785 SanitizeDtorVTable(const CXXDestructorDecl *Dtor) argument
1790 (void)Dtor; variable
2350 const CXXDestructorDecl *Dtor; member in struct:__anon1564::final
2402 const CXXDestructorDecl *Dtor; member in struct:__anon1565::final
[all...]
H A DCGCXXABI.h233 const CXXDestructorDecl *Dtor) = 0;
302 virtual bool useThunkForDtorVariant(const CXXDestructorDecl *Dtor,
414 EmitVirtualDestructorCall(CodeGenFunction &CGF, const CXXDestructorDecl *Dtor,
539 /// \param Dtor - a function taking a single pointer argument
542 llvm::Constant *Dtor,
H A DCGExprCXX.cpp209 if (const auto *Dtor = dyn_cast<CXXDestructorDecl>(CalleeDecl))
211 Dtor, StructorType::Complete);
229 if (const CXXDestructorDecl *Dtor = dyn_cast<CXXDestructorDecl>(MD)) {
235 *this, Dtor, Dtor_Complete, This, cast<CXXMemberCallExpr>(CE));
241 CGM.getAddrOfCXXStructor(Dtor, StructorType::Complete, FInfo, Ty);
1551 const CXXDestructorDecl *Dtor = nullptr; local
1555 Dtor = RD->getDestructor();
1557 if (Dtor->isVirtual()) {
1559 Dtor);
1573 if (Dtor)
[all...]
H A DItaniumCXXABI.cpp155 const CXXDestructorDecl *Dtor) override;
210 bool useThunkForDtorVariant(const CXXDestructorDecl *Dtor,
269 const CXXDestructorDecl *Dtor,
1000 const CXXDestructorDecl *Dtor) {
1032 EmitVirtualDestructorCall(CGF, Dtor, DtorType, Ptr, /*CE=*/nullptr);
1091 llvm::Constant *Dtor = nullptr; local
1096 Dtor = CGM.getAddrOfCXXStructor(DtorD, StructorType::Complete);
1097 Dtor = llvm::ConstantExpr::getBitCast(Dtor, CGM.Int8PtrTy);
1100 if (!Dtor) Dto
996 emitVirtualObjectDelete(CodeGenFunction &CGF, const CXXDeleteExpr *DE, Address Ptr, QualType ElementType, const CXXDestructorDecl *Dtor) argument
1612 EmitVirtualDestructorCall( CodeGenFunction &CGF, const CXXDestructorDecl *Dtor, CXXDtorType DtorType, Address This, const CXXMemberCallExpr *CE) argument
[all...]
H A DMicrosoftCXXABI.cpp117 const CXXDestructorDecl *Dtor) override;
209 bool useThunkForDtorVariant(const CXXDestructorDecl *Dtor,
292 const CXXDestructorDecl *Dtor,
392 llvm::Constant *Dtor, llvm::Constant *Addr) override;
855 const CXXDestructorDecl *Dtor) {
861 EmitVirtualDestructorCall(CGF, Dtor, DtorType, Ptr, /*CE=*/nullptr);
1832 CodeGenFunction &CGF, const CXXDestructorDecl *Dtor, CXXDtorType DtorType,
1839 GlobalDecl GD(Dtor, Dtor_Deleting);
1841 Dtor, StructorType::Deleting);
1853 CGF.EmitCXXDestructorCall(Dtor, Calle
851 emitVirtualObjectDelete(CodeGenFunction &CGF, const CXXDeleteExpr *DE, Address Ptr, QualType ElementType, const CXXDestructorDecl *Dtor) argument
1831 EmitVirtualDestructorCall( CodeGenFunction &CGF, const CXXDestructorDecl *Dtor, CXXDtorType DtorType, Address This, const CXXMemberCallExpr *CE) argument
2174 emitGlobalDtorWithTLRegDtor(CodeGenFunction &CGF, const VarDecl &VD, llvm::Constant *Dtor, llvm::Constant *Addr) argument
2192 registerGlobalDtor(CodeGenFunction &CGF, const VarDecl &D, llvm::Constant *Dtor, llvm::Constant *Addr) argument
[all...]
H A DCGDecl.cpp443 const CXXDestructorDecl *Dtor,
445 : Dtor(Dtor), NRVOFlag(NRVOFlag), Loc(addr) {}
447 const CXXDestructorDecl *Dtor; member in struct:__anon1569::final
466 CGF.EmitCXXDestructorCall(Dtor, Dtor_Complete,
442 DestroyNRVOVariable(Address addr, const CXXDestructorDecl *Dtor, llvm::Value *NRVOFlag) argument
H A DCGOpenMPRuntime.cpp1754 llvm::Value *CopyCtor, llvm::Value *Dtor, SourceLocation Loc) {
1765 Ctor, CopyCtor, Dtor};
1782 llvm::Value *Ctor = nullptr, *CopyCtor = nullptr, *Dtor = nullptr; local
1841 Dtor = Fn;
1844 if (!Ctor && !Dtor)
1860 if (Dtor == nullptr) {
1863 Dtor = llvm::Constant::getNullValue(DtorTy);
1876 emitThreadPrivateVarInit(InitCGF, VDAddr, Ctor, CopyCtor, Dtor, Loc);
1880 emitThreadPrivateVarInit(*CGF, VDAddr, Ctor, CopyCtor, Dtor, Loc);
2757 /// \brief Create a Ctor/Dtor
1752 emitThreadPrivateVarInit( CodeGenFunction &CGF, Address VDAddr, llvm::Value *Ctor, llvm::Value *CopyCtor, llvm::Value *Dtor, SourceLocation Loc) argument
5974 auto *Dtor = RD->getDestructor(); local
[all...]
/external/swiftshader/third_party/subzero/src/
H A DIceDefs.h219 for (auto Dtor = Dtors.rbegin(); Dtor != Dtors.rend(); ++Dtor) {
220 (*Dtor)();
/external/swiftshader/third_party/LLVM/lib/CodeGen/
H A DELFWriter.cpp208 const MCSectionELF *Dtor = (const MCSectionELF *)TLOF.getStaticDtorSection(); local
209 return getSection(Dtor->getSectionName(), Dtor->getType(), Dtor->getFlags());
651 ELFSection &Dtor = getDtorSection(); local
652 Dtor.emitAlignment(Align);
653 EmitXXStructorList(GV->getInitializer(), Dtor);
/external/llvm/lib/ExecutionEngine/Orc/
H A DOrcCBindingsStack.h179 for (auto Dtor : orc::getDestructors(*M))
180 DtorNames.push_back(mangle(Dtor.Func->getName()));
/external/clang/lib/StaticAnalyzer/Core/
H A DExprEngineCallAndReturn.cpp645 const CXXDestructorCall &Dtor = cast<CXXDestructorCall>(Call); local
648 const MemRegion *Target = Dtor.getCXXThisVal().getAsRegion();
716 const CXXDestructorDecl *Dtor = dyn_cast<CXXDestructorDecl>(FD); local
717 if (!Dtor)
720 const CXXRecordDecl *RD = Dtor->getParent();
H A DCallEvent.cpp1100 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CalleeCtx->getDecl()); local
1101 Loc ThisPtr = SVB.getCXXThis(Dtor, CalleeCtx);
1110 Trigger = Dtor->getBody();
1112 return getCXXDestructorCall(Dtor, Trigger, ThisVal.getAsRegion(),
H A DPathDiagnostic.cpp556 const CFGAutomaticObjDtor &Dtor = Source.castAs<CFGAutomaticObjDtor>(); local
557 return PathDiagnosticLocation::createEnd(Dtor.getTriggerStmt(),
561 const CFGDeleteDtor &Dtor = Source.castAs<CFGDeleteDtor>(); local
562 return PathDiagnosticLocation(Dtor.getDeleteExpr(), SM, CallerCtx);
H A DExprEngine.cpp590 void ExprEngine::ProcessAutomaticObjDtor(const CFGAutomaticObjDtor Dtor, argument
593 const VarDecl *varDecl = Dtor.getVarDecl();
605 VisitCXXDestructor(varType, Region, Dtor.getTriggerStmt(), /*IsBase=*/ false,
609 void ExprEngine::ProcessDeleteDtor(const CFGDeleteDtor Dtor, argument
614 const CXXDeleteExpr *DE = Dtor.getDeleteExpr();
624 const CXXDestructorDecl *Dtor = RD->getDestructor(); local
626 PostImplicitCall PP(Dtor, DE->getLocStart(), LCtx);
/external/clang/lib/StaticAnalyzer/Checkers/
H A DDynamicTypePropagation.cpp183 if (const CXXDestructorCall *Dtor = dyn_cast<CXXDestructorCall>(&Call)) {
185 if (!Dtor->isBaseDestructor())
188 const MemRegion *Target = Dtor->getCXXThisVal().getAsRegion();
192 const Decl *D = Dtor->getDecl();
/external/clang/lib/Analysis/
H A DLiveVariables.cpp456 if (Optional<CFGAutomaticObjDtor> Dtor =
458 val.liveDecls = DSetFact.add(val.liveDecls, Dtor->getVarDecl());
H A DThreadSafety.cpp1819 bool Dtor = isa<CXXDestructorDecl>(D);
1821 Analyzer->removeLock(FSet, M, Loc, Dtor, LK_Exclusive, CapDiagKind);
1823 Analyzer->removeLock(FSet, M, Loc, Dtor, LK_Shared, CapDiagKind);
1825 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

Completed in 852 milliseconds

12