| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/ |
| H A D | undelegated-constructor.cpp | 28 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 D | win-cleanuppad.ll | 4 %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 D | cleanuppad-realign.ll | 5 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 D | cxx11-thread-local.cpp | 49 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 D | p1.cpp | 34 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 D | cxa_thread_atexit.cpp | 22 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 D | temporaries.cpp | 137 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 D | dtor.cpp | 232 class Dtor { class 234 ~Dtor() { in ~Dtor() 240 Dtor d; in allocate()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGClass.cpp | 1425 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 D | CGCXXABI.h | 250 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 D | CGExprCXX.cpp | 325 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 D | CGCXXABI.cpp | 309 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 D | ItaniumCXXABI.cpp | 210 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 D | MicrosoftCXXABI.cpp | 122 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 D | tsd_dtor_leak.cpp | 21 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 D | RefCntblBaseVirtualDtorChecker.cpp | 84 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 D | deprecated.cpp | 97 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 D | SpecialMemberFunctionsCheck.cpp | 112 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 D | BlockInCriticalSectionChecker.cpp | 115 if (const auto *Dtor = dyn_cast<CXXDestructorCall>(&Call)) { in isUnlockFunction() local 116 const auto *DRecordDecl = cast<CXXRecordDecl>(Dtor->getDecl()->getParent()); in isUnlockFunction()
|
| H A D | Iterator.cpp | 45 if (const auto *Dtor = dyn_cast<CXXDestructorDecl>(Method)) { in isIterator() local 46 HasDtor = !Dtor->isDeleted() && Dtor->getAccess() == AS_public; in isIterator()
|
| H A D | DynamicTypePropagation.cpp | 285 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 D | LowerGlobalDtors.cpp | 178 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 D | IndexDecl.cpp | 277 } 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 D | rtl.cpp | 515 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 D | PathDiagnostic.cpp | 541 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()
|