| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | GlobalDecl.h | 62 assert(!isa<CXXDestructorDecl>(D) && "Use other ctor with dtor decls!"); in Init() 90 GlobalDecl(const CXXDestructorDecl *D, CXXDtorType Type) : Value(D, Type) {} in GlobalDecl() 111 assert(isa<CXXDestructorDecl>(getDecl()) && "Decl is not a dtor!"); in getDtorType() 127 !isa<CXXDestructorDecl>(getDecl()) && in getMultiVersionIndex() 177 assert(isa<CXXDestructorDecl>(getDecl())); in getWithDtorType() 187 !isa<CXXDestructorDecl>(getDecl()) && in getWithMultiVersionIndex()
|
| H A D | VTableBuilder.h | 72 assert(!isa<CXXDestructorDecl>(MD) && in MakeFunction() 79 static VTableComponent MakeCompleteDtor(const CXXDestructorDecl *DD) { in MakeCompleteDtor() 84 static VTableComponent MakeDeletingDtor(const CXXDestructorDecl *DD) { in MakeDeletingDtor() 90 assert(!isa<CXXDestructorDecl>(MD) && in MakeUnusedFunction() 131 const CXXDestructorDecl *getDestructorDecl() const { in getDestructorDecl() 133 return reinterpret_cast<CXXDestructorDecl *>(getPointer()); in getDestructorDecl() 157 auto *DtorDecl = dyn_cast<CXXDestructorDecl>(getFunctionDecl()); in getGlobalDecl() 595 if (isa<CXXDestructorDecl>(GD.getDecl()) && in getThunkInfo()
|
| H A D | Mangle.h | 31 class CXXDestructorDecl; variable 126 virtual void mangleCXXDtorThunk(const CXXDestructorDecl *DD, CXXDtorType Type, 142 void mangleDtorBlock(const CXXDestructorDecl *CD, CXXDtorType DT, 195 virtual void mangleCXXDtorComdat(const CXXDestructorDecl *D,
|
| H A D | ASTMutationListener.h | 20 class CXXDestructorDecl; variable 83 virtual void ResolvedOperatorDelete(const CXXDestructorDecl *DD, in ResolvedOperatorDelete()
|
| H A D | DeclCXX.h | 62 class CXXDestructorDecl; variable 1432 void addedSelectedDestructor(CXXDestructorDecl *DD); 1502 CXXDestructorDecl *getDestructor() const; 2701 class CXXDestructorDecl : public CXXMethodDecl { 2710 CXXDestructorDecl(ASTContext &C, CXXRecordDecl *RD, SourceLocation StartLoc, 2724 static CXXDestructorDecl * 2730 static CXXDestructorDecl *CreateDeserialized(ASTContext & C, unsigned ID); 2742 CXXDestructorDecl *getCanonicalDecl() override { in getCanonicalDecl() 2743 return cast<CXXDestructorDecl>(FunctionDecl::getCanonicalDecl()); in getCanonicalDecl() 2745 const CXXDestructorDecl *getCanonicalDecl() const { in getCanonicalDecl() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | VirtualClassDestructorCheck.cpp | 27 const CXXDestructorDecl *Destructor = Node.getDestructor(); in AST_MATCHER() 51 getVirtualKeywordRange(const CXXDestructorDecl &Destructor, in getVirtualKeywordRange() 115 static std::string getSourceText(const CXXDestructorDecl &Destructor) { in getSourceText() 131 const std::string &Visibility, const CXXDestructorDecl &Destructor, in changePrivateDestructorVisibilityTo() 170 const CXXDestructorDecl *Destructor = MatchedClassOrStruct->getDestructor(); in check()
|
| H A D | SlicingCheck.cpp | 82 if (isa<CXXConstructorDecl>(Method) || isa<CXXDestructorDecl>(Method)) in diagnoseSlicedOverriddenMethods()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGCXXABI.h | 31 class CXXDestructorDecl; variable 250 const CXXDestructorDecl *Dtor) = 0; 354 virtual bool useThunkForDtorVariant(const CXXDestructorDecl *Dtor, 358 const CXXDestructorDecl *Dtor, 362 getCXXDestructorLinkage(GVALinkage Linkage, const CXXDestructorDecl *Dtor, 366 virtual void EmitCXXDestructors(const CXXDestructorDecl *D) = 0; 426 const CXXDestructorDecl *DD, CXXDtorType Type, 431 const CXXDestructorDecl *DD, CXXDtorType Type, 481 const CXXDestructorDecl *Dtor,
|
| H A D | CGCXX.cpp | 34 bool CodeGenModule::TryEmitBaseDestructorAsAlias(const CXXDestructorDecl *D) { in TryEmitBaseDestructorAsAlias() 107 const CXXDestructorDecl *BaseD = UniqueBase->getDestructor(); in TryEmitBaseDestructorAsAlias() 226 if (isa<CXXDestructorDecl>(MD)) { in getAddrAndTypeOfCXXStructor() 288 if (const auto *DD = dyn_cast<CXXDestructorDecl>(MD)) in BuildAppleKextVirtualCall() 298 const CXXDestructorDecl *DD, in BuildAppleKextVirtualDestructorCall()
|
| H A D | CGClass.cpp | 1438 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CurGD.getDecl()); in EmitDestructorBody() 1579 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CGF.CurCodeDecl); in Emit() 1597 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CGF.CurCodeDecl); in EmitConditionalDtorDeleteCall() 1698 const CXXDestructorDecl *Dtor; 1746 const CXXDestructorDecl *Dtor; 1770 const CXXDestructorDecl *DD; 1775 const CXXDestructorDecl *DD) in SanitizeDtorCleanupBuilder() 2073 const CXXDestructorDecl *dtor = record->getDestructor(); in destroyCXXObject() 2417 const CXXDestructorDecl *Dtor; 2476 const CXXDestructorDecl *Dtor; [all …]
|
| H A D | MicrosoftCXXABI.cpp | 68 if (isa<CXXDestructorDecl>(GD.getDecl())) { in isThisCompleteObject() 223 bool useThunkForDtorVariant(const CXXDestructorDecl *Dtor, in useThunkForDtorVariant() 236 void EmitCXXDestructors(const CXXDestructorDecl *D) override; 240 if (MD->isVirtual() && !isa<CXXDestructorDecl>(MD)) { in getThisArgumentTypeForMethod() 1081 return isa<CXXDestructorDecl>(GD.getDecl()) && in isDeletingDtor() 1305 if (isa<CXXDestructorDecl>(GD.getDecl()) && in buildStructorSignature() 1396 if (const CXXDestructorDecl *DD = dyn_cast<CXXDestructorDecl>(MD)) { in getVirtualFunctionPrologueThisAdjustment() 1415 if (isa<CXXDestructorDecl>(MD)) in getVirtualFunctionPrologueThisAdjustment() 1445 if (const CXXDestructorDecl *DD = dyn_cast<CXXDestructorDecl>(MD)) { in adjustThisArgumentForVirtualFunctionCall() 4032 auto *dtor = cast<CXXDestructorDecl>(GD.getDecl()); in emitCXXStructor() [all …]
|
| H A D | CGVTables.cpp | 268 if (isa<CXXDestructorDecl>(MD)) in StartThunk() 333 if (isa<CXXDestructorDecl>(MD)) in EmitCallAndReturnForThunk() 351 assert(isa<CXXDestructorDecl>(MD) || // ignore dtor return types in EmitCallAndReturnForThunk() 505 if (const CXXDestructorDecl *DD = dyn_cast<CXXDestructorDecl>(MD)) in maybeEmitThunk() 612 if (isa<CXXDestructorDecl>(MD) && GD.getDtorType() == Dtor_Base) in EmitThunks()
|
| H A D | ItaniumCXXABI.cpp | 80 if (isa<CXXDestructorDecl>(GD.getDecl())) { in isThisCompleteObject() 160 const CXXDestructorDecl *Dtor) override; 210 bool useThunkForDtorVariant(const CXXDestructorDecl *Dtor, in useThunkForDtorVariant() 218 void EmitCXXDestructors(const CXXDestructorDecl *D) override; 438 isa<CXXDestructorDecl>(GD.getDecl()) && in HasThisReturn() 473 (isa<CXXDestructorDecl>(GD.getDecl()) && in HasThisReturn() 491 (isa<CXXDestructorDecl>(GD.getDecl()) && in HasThisReturn() 1314 CXXDestructorDecl *DtorD = Record->getDestructor(); in emitThrow() 2147 if (!isa<CXXDestructorDecl>(CGF.CurGD.getDecl())) in EmitReturnFromThunk() 4237 if (const auto *DD = dyn_cast<CXXDestructorDecl>(MD)) { in getCodegenToUse() [all …]
|
| H A D | CGCXXABI.cpp | 309 const CXXDestructorDecl *Dtor, in setCXXDestructorDLLStorage() 316 GVALinkage Linkage, const CXXDestructorDecl *Dtor, CXXDtorType DT) const { in getCXXDestructorLinkage()
|
| H A D | CodeGenABITypes.cpp | 121 llvm::BasicBlock::iterator InsertPoint, const CXXDestructorDecl *D, in getCXXDestructorImplicitParam()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | Mangle.cpp | 280 void MangleContext::mangleDtorBlock(const CXXDestructorDecl *DD, in mangleDtorBlock() 291 assert(!isa<CXXConstructorDecl>(DC) && !isa<CXXDestructorDecl>(DC)); in mangleBlock() 307 else if (const auto *DD = dyn_cast<CXXDestructorDecl>(DC)) in mangleBlock() 504 } else if (const auto *DD = dyn_cast_or_null<CXXDestructorDecl>(ND)) { in getAllManglings() 528 else if (const auto *DtorD = dyn_cast<CXXDestructorDecl>(D)) in writeFuncOrVarName() 557 else if (const auto *DD = dyn_cast_or_null<CXXDestructorDecl>(ND)) in getMangledStructor()
|
| H A D | VTableBuilder.cpp | 494 if (isa<CXXDestructorDecl>(LHS)) in MethodsCanShareVCallOffset() 495 return isa<CXXDestructorDecl>(RHS); in MethodsCanShareVCallOffset() 1147 if (isa<CXXDestructorDecl>(MD)) { in ComputeThisAdjustments() 1306 if (const CXXDestructorDecl *DD = dyn_cast<CXXDestructorDecl>(MD)) { in AddMethod() 1566 if (isa<CXXDestructorDecl>(A) != isa<CXXDestructorDecl>(B)) in AddMethods() 1567 return isa<CXXDestructorDecl>(A); in AddMethods() 1685 if (const CXXDestructorDecl *DD = dyn_cast<CXXDestructorDecl>(MD)) { in LayoutPrimaryAndSecondaryVTables() 2180 if (const CXXDestructorDecl *DD = dyn_cast<CXXDestructorDecl>(MD)) { in dumpLayout() 2521 if (const CXXDestructorDecl *DD = dyn_cast<CXXDestructorDecl>(MD)) { in AddMethod() 2560 if (const CXXDestructorDecl *DD = dyn_cast<CXXDestructorDecl>(MD)) { in LayoutVFTable() [all …]
|
| H A D | DeclCXX.cpp | 830 if (isa<CXXDestructorDecl>(D)) in addedMember() 1429 } else if (isa<CXXDestructorDecl>(D)) { in finishedDefaultedOrDeletedMember() 1475 } else if (isa<CXXDestructorDecl>(D)) in setTrivialForCallFlags() 1915 auto* DD = dyn_cast<CXXDestructorDecl>(Decl); in getDestructor() 2141 if (isa<CXXDestructorDecl>(this)) { in getCorrespondingMethodDeclaredInClass() 2750 void CXXDestructorDecl::anchor() {} in anchor() 2752 CXXDestructorDecl * 2754 return new (C, ID) CXXDestructorDecl( in CreateDeserialized() 2759 CXXDestructorDecl *CXXDestructorDecl::Create( in Create() 2767 return new (C, RD) CXXDestructorDecl( in Create() [all …]
|
| /llvm-project-15.0.7/clang/include/clang/CodeGen/ |
| H A D | CodeGenABITypes.h | 42 class CXXDestructorDecl; variable 91 const CXXDestructorDecl *D, CXXDtorType Type,
|
| /llvm-project-15.0.7/clang/include/clang/Analysis/Analyses/ |
| H A D | ThreadSafetyCommon.h | 48 class CXXDestructorDecl; variable 124 void handleDestructorCall(const VarDecl *VD, const CXXDestructorDecl *DD) {} in handleDestructorCall() 213 auto *DD = const_cast<CXXDestructorDecl *>( in walk() 466 void handleDestructorCall(const VarDecl *VD, const CXXDestructorDecl *DD);
|
| /llvm-project-15.0.7/clang/include/clang/Analysis/ |
| H A D | AnyCall.h | 93 AnyCall(const CXXDestructorDecl *D) : E(nullptr), D(D), K(Destructor) {} in AnyCall() 102 } else if (isa <CXXDestructorDecl>(D)) { in AnyCall()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/ |
| H A D | TriviallyDestructibleCheck.cpp | 52 const auto *MatchedDecl = Result.Nodes.getNodeAs<CXXDestructorDecl>("decl"); in check()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | UsedDeclVisitor.h | 55 const_cast<CXXDestructorDecl *>(E->getTemporary()->getDestructor())); in VisitCXXBindTemporaryExpr()
|
| /llvm-project-15.0.7/lldb/tools/lldb-instr/ |
| H A D | Instrument.cpp | 111 if (isa<CXXDestructorDecl>(Decl)) in ShouldSkip()
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | MultiplexConsumer.cpp | 99 void ResolvedOperatorDelete(const CXXDestructorDecl *DD, 170 const CXXDestructorDecl *DD, const FunctionDecl *Delete, Expr *ThisArg) { in ResolvedOperatorDelete()
|