Home
last modified time | relevance | path

Searched refs:getDestructor (Results 1 – 25 of 41) sorted by relevance

12

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DVirtualClassDestructorCheck.cpp27 const CXXDestructorDecl *Destructor = Node.getDestructor(); in AST_MATCHER()
170 const CXXDestructorDecl *Destructor = MatchedClassOrStruct->getDestructor(); in check()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DDeleteWithNonVirtualDtorChecker.cpp82 if (BaseClass->getDestructor()->isVirtual()) in checkPreStmt()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DRefCntblBaseVirtualDtorChecker.cpp84 const auto *Dtor = (*RefCntblBaseRD)->getDestructor(); in visitCXXRecordDecl()
/llvm-project-15.0.7/clang/lib/Sema/
H A DUsedDeclVisitor.h55 const_cast<CXXDestructorDecl *>(E->getTemporary()->getDestructor())); in VisitCXXBindTemporaryExpr()
H A DSemaCUDA.cpp536 return isEmptyCudaDestructor(Loc, RD->getDestructor()); in isEmptyCudaDestructor()
546 return isEmptyCudaDestructor(Loc, RD->getDestructor()); in isEmptyCudaDestructor()
599 return S.isEmptyCudaDestructor(VD->getLocation(), RD->getDestructor()); in HasAllowedCUDADeviceStaticInitializer()
H A DSemaExceptionSpec.cpp1074 if (auto *Dtor = RD->getDestructor()) { in canVarDeclThrow()
1224 const CXXDestructorDecl *DD = RD->getDestructor(); in canThrow()
1238 canCalleeThrow(*this, BTE, BTE->getTemporary()->getDestructor()); in canThrow()
H A DSemaCoroutine.cpp649 checkDeclNoexcept(Ctor->getParent()->getDestructor(), /*IsDtor=*/true); in checkNoThrow()
661 checkDeclNoexcept(cast<CXXRecordDecl>(T->getDecl())->getDestructor(), in checkNoThrow()
H A DSemaDeclCXX.cpp5665 CXXDestructorDecl *Dtor = ClassDecl->getDestructor(); in MarkBaseAndMemberDestructorsReferenced()
6643 } else if (const auto *DD = D->getDestructor()) { in canPassInRegisters()
6800 CXXDestructorDecl *dtor = Record->getDestructor(); in CheckCompletedCXXClass()
6817 if (const CXXDestructorDecl *dtor = Record->getDestructor()) { in CheckCompletedCXXClass()
6962 if (CXXDestructorDecl *Dtor = Record->getDestructor()) in CheckCompletedCXXClass()
9539 *Selected = RD->getDestructor(); in findTrivialSpecialMember()
14416 UserDeclaredOperation = RD->getDestructor(); in diagnoseDeprecatedCopyOperation()
17755 CXXDestructorDecl *DD = Class->getDestructor(); in MarkVTableUsed()
17764 MarkFunctionReferenced(Loc, Class->getDestructor()); in MarkVTableUsed()
H A DSema.cpp2139 if (CXXDestructorDecl *DD = RD->getDestructor()) { in checkEscapingByref()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGCXX.cpp107 const CXXDestructorDecl *BaseD = UniqueBase->getDestructor(); in TryEmitBaseDestructorAsAlias()
H A DCGDeclCXX.cpp110 GlobalDecl(Record->getDestructor(), Dtor_Complete)) || in EmitDeclDestroy()
118 CXXDestructorDecl *Dtor = Record->getDestructor(); in EmitDeclDestroy()
H A DCGClass.cpp518 const CXXDestructorDecl *D = BaseClass->getDestructor(); in Emit()
1359 if (!BaseClassDecl->getDestructor()->hasTrivialBody()) in HasTrivialDestructorBody()
2073 const CXXDestructorDecl *dtor = record->getDestructor(); in destroyCXXObject()
2460 ClassDecl->getDestructor(), in EmitDelegatingCXXConstructorCall()
2501 const CXXDestructorDecl *D = ClassDecl->getDestructor(); in PushDestructorCleanup()
H A DCGExprCXX.cpp1879 auto *Dtor = ElementType->getAsCXXRecordDecl()->getDestructor(); in EmitDestroyingObjectDelete()
1913 Dtor = RD->getDestructor(); in EmitObjectDelete()
H A DCodeGenModule.cpp3288 if (RD->getDestructor() && !RD->getDestructor()->hasAttr<DLLImportAttr>()) in HasNonDllImportDtor()
3350 if (const auto *D = E->getTemporary()->getDestructor()) in VisitCXXBindTemporaryExpr()
H A DCGDecl.cpp2000 CXXDestructorDecl *dtor = type->getAsCXXRecordDecl()->getDestructor(); in emitAutoVarTypeCleanup()
H A DCGBlocks.cpp1709 if (const CXXDestructorDecl *DD = RD->getDestructor()) in cxxDestructorCanThrow()
/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/
H A DUSRFindingAction.cpp175 USRSet.insert(getUSRForDecl(RecordDecl->getDestructor())); in addUSRsOfCtorDtors()
/llvm-project-15.0.7/clang/lib/AST/
H A DDeclCXX.cpp562 auto *Dtor = getDestructor(); in hasConstexprDestructor()
1902 CXXDestructorDecl *CXXRecordDecl::getDestructor() const { in getDestructor() function in CXXRecordDecl
2048 if (const auto *Dtor = Def->getDestructor()) in isEffectivelyFinal()
2142 CXXMethodDecl *MD = RD->getDestructor(); in getCorrespondingMethodDeclaredInClass()
H A DJSONNodeDumper.cpp1411 if (const CXXDestructorDecl *Dtor = Temp->getDestructor()) in VisitCXXBindTemporaryExpr()
H A DStmtProfile.cpp1975 const_cast<CXXDestructorDecl *>(S->getTemporary()->getDestructor())); in VisitCXXBindTemporaryExpr()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DExprEngineCXX.cpp814 const CXXDestructorDecl *DtorDecl = RecordDecl->getDestructor(); in VisitCXXDestructor()
H A DExprEngine.cpp1170 const CXXDestructorDecl *Dtor = RD->getDestructor(); in ProcessDeleteDtor()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DCFG.cpp5046 const CXXDestructorDecl *Dtor = E->getTemporary()->getDestructor(); in VisitCXXBindTemporaryExprForTemporaryDtors()
5261 return classDecl->getDestructor(); in getDestructorDecl()
5269 return classDecl->getDestructor(); in getDestructorDecl()
5275 return temp->getDestructor(); in getDestructorDecl()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DDeclCXX.h1502 CXXDestructorDecl *getDestructor() const;
H A DExprCXX.h1391 const CXXDestructorDecl *getDestructor() const { return Destructor; } in getDestructor() function

12