Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dundelegated-constructor.cpp28 struct Dtor { struct
29 Dtor();
30 Dtor(int);
31 Dtor(int, int);
32 Dtor(Ctor *i) { in Dtor() argument
33 Dtor(); in Dtor()
35 Dtor(0); in Dtor()
37 Dtor(1, 2); in Dtor()
40 ~Dtor();
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dwin-cleanuppad.ll4 %struct.Dtor = type { i8 }
8 %o = alloca %struct.Dtor, align 1
29 ; CHECK: callq "??1Dtor@@QAE@XZ"
36 ; CHECK: callq "??1Dtor@@QAE@XZ"
61 %o1 = alloca %struct.Dtor, align 1
62 %o2 = alloca %struct.Dtor, align 1
102 ; X86: calll "??1Dtor@@QAE@XZ"
110 ; X86: calll "??1Dtor@@QAE@XZ"
139 ; X64: callq "??1Dtor@@QAE@XZ"
149 ; X64: callq "??1Dtor@@QAE@XZ"
[all …]
H A Dcleanuppad-realign.ll5 declare void @Dtor(ptr %o)
16 call void @Dtor(ptr %o)
21 call void @Dtor(ptr %o) [ "funclet"(token %0) ]
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dcxx11-thread-local.cpp49 struct Dtor { ~Dtor(); }; struct
50 template<typename T> struct X { static thread_local Dtor m; };
51 template<typename T> thread_local Dtor X<T>::m;
58 template thread_local Dtor X<float>::m;
62 extern template thread_local Dtor X<char>::m;
/llvm-project-15.0.7/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}} 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()
/llvm-project-15.0.7/libcxxabi/src/
H A Dcxa_thread_atexit.cpp22 using Dtor = void(*)(void*); typedef
30 int __cxa_thread_atexit_impl(Dtor, void*, void*);
64 Dtor dtor;
111 _LIBCXXABI_FUNC_VIS int __cxa_thread_atexit(Dtor dtor, void* obj, void* dso_symbol) throw() { in __cxa_thread_atexit()
/llvm-project-15.0.7/clang/test/Analysis/
H A Dtemporaries.cpp137 struct Dtor { struct
138 ~Dtor();
141 extern bool check(const Dtor &);
146 if (coin() && (coin() || coin() || check(Dtor()))) { in testPR16664andPR18159Crash()
147 Dtor(); in testPR16664andPR18159Crash()
393 check(Dtor()) && in testNoReturnInComplexCondition()
399 b || (check(Dtor()), check(NoReturnDtor())); in testSequencingOfConditionalTempDtors()
404 (b || check(Dtor())), check(NoReturnDtor()); in testSequencingOfConditionalTempDtors2()
409 b || (check(Dtor()) + check(NoReturnDtor())); in testSequencingOfConditionalTempDtorsWithinBinaryOperators()
413 void f(Dtor d = Dtor());
[all …]
H A Ddtor.cpp232 class Dtor { class
234 ~Dtor() { in ~Dtor()
240 Dtor d; in allocate()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGClass.cpp1425 if (!Dtor->hasTrivialBody()) in CanSkipVTablePointerInitialization()
1455 Stmt *Body = Dtor->getBody(); in EmitDestructorBody()
1514 EnterDtorCleanups(Dtor, Dtor_Base); in EmitDestructorBody()
1698 const CXXDestructorDecl *Dtor; member in __anon858dc5ae0411::SanitizeDtorFieldRange
1705 : Dtor(Dtor), StartIndex(StartIndex), EndIndex(EndIndex) {} in SanitizeDtorFieldRange()
1746 const CXXDestructorDecl *Dtor; member in __anon858dc5ae0411::SanitizeDtorVTable
1749 SanitizeDtorVTable(const CXXDestructorDecl *Dtor) : Dtor(Dtor) {} in SanitizeDtorVTable() argument
1754 (void)Dtor; in Emit()
2417 const CXXDestructorDecl *Dtor; member
2476 const CXXDestructorDecl *Dtor; member
[all …]
H A DCGCXXABI.h250 const CXXDestructorDecl *Dtor) = 0;
354 virtual bool useThunkForDtorVariant(const CXXDestructorDecl *Dtor,
358 const CXXDestructorDecl *Dtor,
362 getCXXDestructorLinkage(GVALinkage Linkage, const CXXDestructorDecl *Dtor,
481 const CXXDestructorDecl *Dtor,
611 llvm::FunctionCallee Dtor,
H A DCGExprCXX.cpp325 GlobalDecl(Dtor, Dtor_Complete)); in EmitCXXMemberOrOperatorMemberCallExpr()
370 GlobalDecl GD(Dtor, Dtor_Complete); in EmitCXXMemberOrOperatorMemberCallExpr()
1880 if (Dtor && Dtor->isVirtual()) in EmitDestroyingObjectDelete()
1882 Dtor); in EmitDestroyingObjectDelete()
1909 const CXXDestructorDecl *Dtor = nullptr; in EmitObjectDelete() local
1913 Dtor = RD->getDestructor(); in EmitObjectDelete()
1915 if (Dtor->isVirtual()) { in EmitObjectDelete()
1920 Dtor->getDevirtualizedMethod( in EmitObjectDelete()
1928 Dtor = DevirtualizedDtor; in EmitObjectDelete()
1954 if (Dtor) in EmitObjectDelete()
[all …]
H A DCGCXXABI.cpp309 const CXXDestructorDecl *Dtor, in setCXXDestructorDLLStorage() argument
312 CGM.setDLLImportDLLExport(GV, Dtor); in setCXXDestructorDLLStorage()
316 GVALinkage Linkage, const CXXDestructorDecl *Dtor, CXXDtorType DT) const { in getCXXDestructorLinkage() argument
318 return CGM.getLLVMLinkageForDeclarator(Dtor, Linkage, in getCXXDestructorLinkage()
H A DItaniumCXXABI.cpp210 bool useThunkForDtorVariant(const CXXDestructorDecl *Dtor, in useThunkForDtorVariant() argument
1250 EmitVirtualDestructorCall(CGF, Dtor, DtorType, Ptr, DE); in emitVirtualObjectDelete()
1310 llvm::Constant *Dtor = nullptr; in emitThrow() local
1316 Dtor = llvm::ConstantExpr::getBitCast(Dtor, CGM.Int8PtrTy); in emitThrow()
1319 if (!Dtor) Dtor = llvm::Constant::getNullValue(CGM.Int8PtrTy); in emitThrow()
1321 llvm::Value *args[] = { ExceptionPtr, TypeInfo, Dtor }; in emitThrow()
1987 GlobalDecl GD(Dtor, DtorType); in EmitVirtualDestructorCall()
2616 llvm::Function *Dtor = *itv; in unregisterGlobalDtorsWithUnAtExit() local
2639 CI->setCallingConv(Dtor->getCallingConv()); in unregisterGlobalDtorsWithUnAtExit()
2671 for (auto *Dtor : Dtors) { in registerGlobalDtorsWithAtExit() local
[all …]
H A DMicrosoftCXXABI.cpp122 const CXXDestructorDecl *Dtor) override;
223 bool useThunkForDtorVariant(const CXXDestructorDecl *Dtor, in useThunkForDtorVariant() argument
229 const CXXDestructorDecl *Dtor,
419 llvm::FunctionCallee Dtor,
1341 const NamedDecl *ND = Dtor; in setCXXDestructorDLLStorage()
1357 return CGM.getLLVMLinkageForDeclarator(Dtor, Linkage, in getCXXDestructorLinkage()
1363 if (Dtor->hasAttr<DLLExportAttr>()) in getCXXDestructorLinkage()
1365 if (Dtor->hasAttr<DLLImportAttr>()) in getCXXDestructorLinkage()
1980 GlobalDecl GD(Dtor, Dtor_Deleting); in EmitVirtualDestructorCall()
2349 return emitGlobalDtorWithTLRegDtor(CGF, D, Dtor, Addr); in registerGlobalDtor()
[all …]
/llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Posix/
H A Dtsd_dtor_leak.cpp21 void Dtor(void *tsd) { in Dtor() function
28 assert(0 == pthread_key_create(&tsd_key, Dtor)); in main()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DRefCntblBaseVirtualDtorChecker.cpp84 const auto *Dtor = (*RefCntblBaseRD)->getDestructor(); in visitCXXRecordDecl() local
85 if (!Dtor || !Dtor->isVirtual()) { in visitCXXRecordDecl()
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Ddeprecated.cpp97 struct Dtor { struct
98 ~Dtor();
102 …Dtor c1, c2(c1); // expected-note {{implicit copy constructor for 'DeprecatedCopy::Dtor' first req…
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DSpecialMemberFunctionsCheck.cpp112 if (const auto *Dtor = Result.Nodes.getNodeAs<CXXMethodDecl>("dtor")) { in check() local
113 StoreMember({Dtor->isDefaulted() in check()
116 Dtor->isDeleted()}); in check()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DBlockInCriticalSectionChecker.cpp115 if (const auto *Dtor = dyn_cast<CXXDestructorCall>(&Call)) { in isUnlockFunction() local
116 const auto *DRecordDecl = cast<CXXRecordDecl>(Dtor->getDecl()->getParent()); in isUnlockFunction()
H A DIterator.cpp45 if (const auto *Dtor = dyn_cast<CXXDestructorDecl>(Method)) { in isIterator() local
46 HasDtor = !Dtor->isDeleted() && Dtor->getAccess() == AS_public; in isIterator()
H A DDynamicTypePropagation.cpp285 if (const CXXDestructorCall *Dtor = dyn_cast<CXXDestructorCall>(&Call)) { in checkPreCall() local
287 if (!Dtor->isBaseDestructor()) in checkPreCall()
290 const MemRegion *Target = Dtor->getCXXThisVal().getAsRegion(); in checkPreCall()
294 const Decl *D = Dtor->getDecl(); in checkPreCall()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DLowerGlobalDtors.cpp178 for (auto Dtor : reverse(AssociatedAndMore.second)) in runImpl() local
179 CallInst::Create(VoidVoid, Dtor, "", BB); in runImpl()
/llvm-project-15.0.7/clang/lib/Index/
H A DIndexDecl.cpp277 } else if (const CXXDestructorDecl *Dtor = dyn_cast<CXXDestructorDecl>(D)) { in VisitFunctionDecl() local
278 if (auto TypeNameInfo = Dtor->getNameInfo().getNamedTypeInfo()) { in VisitFunctionDecl()
279 IndexCtx.handleReference(Dtor->getParent(), in VisitFunctionDecl()
281 Dtor->getParent(), Dtor->getDeclContext(), in VisitFunctionDecl()
/llvm-project-15.0.7/openmp/libomptarget/src/
H A Drtl.cpp515 for (auto &Dtor : Device.PendingCtorsDtors[Desc].PendingDtors) { in unregisterLib() local
516 int Rc = target(nullptr, Device, Dtor, 0, nullptr, nullptr, nullptr, in unregisterLib()
520 DP("Running destructor " DPxMOD " failed.\n", DPxPTR(Dtor)); in unregisterLib()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DPathDiagnostic.cpp541 const CFGAutomaticObjDtor &Dtor = Source.castAs<CFGAutomaticObjDtor>(); in getLocationForCaller() local
542 return PathDiagnosticLocation::createEnd(Dtor.getTriggerStmt(), in getLocationForCaller()
546 const CFGDeleteDtor &Dtor = Source.castAs<CFGDeleteDtor>(); in getLocationForCaller() local
547 return PathDiagnosticLocation(Dtor.getDeleteExpr(), SM, CallerCtx); in getLocationForCaller()
564 const auto &Dtor = Source.castAs<CFGTemporaryDtor>(); in getLocationForCaller() local
565 return PathDiagnosticLocation::createEnd(Dtor.getBindTemporaryExpr(), SM, in getLocationForCaller()

123