Home
last modified time | relevance | path

Searched refs:Destructor (Results 1 – 25 of 28) sorted by relevance

12

/freebsd/contrib/llvm-project/clang/include/clang/Analysis/
H A DAnyCall.h40 Destructor, enumerator
94 AnyCall(const CXXDestructorDecl *D) : E(nullptr), D(D), K(Destructor) {} in AnyCall()
104 K = Destructor; in AnyCall()
179 case Destructor: in getReturnType()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DTrieRawHashMap.cpp363 function_ref<void(void *)> Destructor) { in destroyImpl() argument
373 if (Destructor) in destroyImpl()
377 Destructor(Content->getValuePointer()); in destroyImpl()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaDeclCXX.cpp6739 return CXXSpecialMemberKind::Destructor; in getDefaultedFunctionKind()
6789 case CXXSpecialMemberKind::Destructor: in DefineDefaultedFunction()
7133 CSM == CXXSpecialMemberKind::Destructor) && in CheckCompletedCXXClass()
7145 CSM == CXXSpecialMemberKind::Destructor)) in CheckCompletedCXXClass()
7371 CSM == CXXSpecialMemberKind::Destructor) in lookupCallFromSpecialMember()
7488 if (CSM == CXXSpecialMemberKind::Destructor) in specialMemberIsConstexpr()
7537 case CXXSpecialMemberKind::Destructor: in defaultedSpecialMemberIsConstexpr()
7751 CSM == CXXSpecialMemberKind::Destructor) in CheckExplicitlyDefaultedSpecialMember()
9348 case CXXSpecialMemberKind::Destructor: in SpecialMemberVisitor()
9599 S.LookupSpecialMember(Class, CXXSpecialMemberKind::Destructor, false, in shouldDeleteForClassSubobject()
[all …]
H A DSemaTypeTraits.cpp960 CXXDestructorDecl *Destructor = Self.LookupDestructor(RD); in EvaluateUnaryTypeTrait() local
961 if (!Destructor) in EvaluateUnaryTypeTrait()
966 if (Destructor->isDeleted()) in EvaluateUnaryTypeTrait()
968 if (C.getLangOpts().AccessControl && Destructor->getAccess() != AS_public) in EvaluateUnaryTypeTrait()
971 auto *CPT = Destructor->getType()->castAs<FunctionProtoType>(); in EvaluateUnaryTypeTrait()
1115 if (CXXDestructorDecl *Destructor = Self.LookupDestructor(RD)) in EvaluateUnaryTypeTrait() local
1116 return Destructor->isVirtual(); in EvaluateUnaryTypeTrait()
H A DSemaExprCXX.cpp1016 if (CXXDestructorDecl *Destructor = LookupDestructor(RD)) { in CheckCXXThrowOperand() local
1017 MarkFunctionReferenced(E->getExprLoc(), Destructor); in CheckCXXThrowOperand()
1018 CheckDestructorAccess(E->getExprLoc(), Destructor, in CheckCXXThrowOperand()
1020 if (DiagnoseUseOfDecl(Destructor, E->getExprLoc())) in CheckCXXThrowOperand()
6648 CXXDestructorDecl *Destructor = IsDecltype ? nullptr : LookupDestructor(RD); in MaybeBindToTemporary() local
6650 if (Destructor) { in MaybeBindToTemporary()
6651 MarkFunctionReferenced(E->getExprLoc(), Destructor); in MaybeBindToTemporary()
6652 CheckDestructorAccess(E->getExprLoc(), Destructor, in MaybeBindToTemporary()
6655 if (DiagnoseUseOfDecl(Destructor, E->getExprLoc())) in MaybeBindToTemporary()
6659 if (Destructor->isTrivial()) in MaybeBindToTemporary()
[all …]
H A DSemaInit.cpp2064 CXXDestructorDecl *Destructor = SemaRef.LookupDestructor(CXXRD); in checkDestructorReference() local
2065 if (!Destructor) in checkDestructorReference()
2068 SemaRef.CheckDestructorAccess(Loc, Destructor, in checkDestructorReference()
2071 SemaRef.MarkFunctionReferenced(Loc, Destructor); in checkDestructorReference()
2072 return SemaRef.DiagnoseUseOfDecl(Destructor, Loc); in checkDestructorReference()
8163 CXXDestructorDecl *Destructor in Perform() local
8165 S.CheckDestructorAccess(CurInit.get()->getBeginLoc(), Destructor, in Perform()
8167 S.MarkFunctionReferenced(CurInit.get()->getBeginLoc(), Destructor); in Perform()
8168 if (S.DiagnoseUseOfDecl(Destructor, CurInit.get()->getBeginLoc())) in Perform()
H A DSemaDecl.cpp12268 } else if (CXXDestructorDecl *Destructor = in CheckFunctionDeclaration() local
12277 !Destructor->getFunctionObjectParameterType()->isDependentType()) { in CheckFunctionDeclaration()
12278 CXXRecordDecl *Record = Destructor->getParent(); in CheckFunctionDeclaration()
16367 else if (CXXDestructorDecl *Destructor = in ActOnFinishFunctionBody() local
16369 MarkVTableUsed(FD->getLocation(), Destructor->getParent()); in ActOnFinishFunctionBody()
16615 if (CXXDestructorDecl *Destructor = dyn_cast<CXXDestructorDecl>(dcl)) { in ActOnFinishFunctionBody() local
16616 if (!Destructor->getParent()->isDependentType()) in ActOnFinishFunctionBody()
16617 CheckDestructor(Destructor); in ActOnFinishFunctionBody()
16619 MarkBaseAndMemberDestructorsReferenced(Destructor->getLocation(), in ActOnFinishFunctionBody()
16620 Destructor->getParent()); in ActOnFinishFunctionBody()
[all …]
H A DSemaTemplateInstantiateDecl.cpp3159 } else if (CXXDestructorDecl *Destructor = dyn_cast<CXXDestructorDecl>(D)) { in VisitCXXMethodDecl() local
3162 Destructor->UsesFPIntrin(), Destructor->isInlineSpecified(), false, in VisitCXXMethodDecl()
3163 Destructor->getConstexprKind(), TrailingRequiresClause); in VisitCXXMethodDecl()
3165 Method->setRangeEnd(Destructor->getEndLoc()); in VisitCXXMethodDecl()
H A DSemaLookup.cpp3397 SM != CXXSpecialMemberKind::Destructor) && in LookupSpecialMember()
3424 if (SM == CXXSpecialMemberKind::Destructor) { in LookupSpecialMember()
3683 LookupSpecialMember(Class, CXXSpecialMemberKind::Destructor, false, false, in LookupDestructor()
H A DSemaDeclObjC.cpp5541 if (CXXDestructorDecl *Destructor = SemaRef.LookupDestructor(RD)) { in SetIvarInitializers() local
5542 SemaRef.MarkFunctionReferenced(Field->getLocation(), Destructor); in SetIvarInitializers()
5544 Field->getLocation(), Destructor, in SetIvarInitializers()
H A DSemaExpr.cpp18385 } else if (CXXDestructorDecl *Destructor = in MarkFunctionReferenced() local
18387 Destructor = cast<CXXDestructorDecl>(Destructor->getFirstDecl()); in MarkFunctionReferenced()
18388 if (Destructor->isDefaulted() && !Destructor->isDeleted()) { in MarkFunctionReferenced()
18389 if (Destructor->isTrivial() && !Destructor->hasAttr<DLLExportAttr>()) in MarkFunctionReferenced()
18391 DefineImplicitDestructor(Loc, Destructor); in MarkFunctionReferenced()
18393 if (Destructor->isVirtual() && getLangOpts().AppleKext) in MarkFunctionReferenced()
18394 MarkVTableUsed(Loc, Destructor->getParent()); in MarkFunctionReferenced()
H A DSemaChecking.cpp14183 CXXDestructorDecl *Destructor = LookupDestructor(ClassDecl); in CheckParmsForFunctionDef() local
14184 MarkFunctionReferenced(Param->getLocation(), Destructor); in CheckParmsForFunctionDef()
14185 DiagnoseUseOfDecl(Destructor, Param->getLocation()); in CheckParmsForFunctionDef()
/freebsd/contrib/llvm-project/clang/include/clang/Index/
H A DIndexSymbol.h52 Destructor, enumerator
/freebsd/contrib/llvm-project/clang/lib/Index/
H A DIndexSymbol.cpp267 Info.Kind = SymbolKind::Destructor; in getSymbolInfo()
297 Info.Kind = SymbolKind::Destructor; in getSymbolInfo()
533 case SymbolKind::Destructor: return "destructor"; in getSymbolKindString()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DExecutionUtils.cpp177 int LocalCXXRuntimeOverridesBase::CXAAtExitOverride(DestructorPtr Destructor, in CXAAtExitOverride() argument
182 CXXDestructorDataPairs.push_back(std::make_pair(Destructor, Arg)); in CXAAtExitOverride()
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DExecutionUtils.h187 LLVM_ABI static int CXAAtExitOverride(DestructorPtr Destructor, void *Arg,
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DTrieRawHashMap.h145 LLVM_ABI void destroyImpl(function_ref<void(void *ValueMem)> Destructor);
/freebsd/contrib/kyua/utils/
H A Dauto_array.ipp90 /// Destructor for auto_array objects.
H A Doptional.ipp75 /// Destructor.
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DExprCXX.h1461 const CXXDestructorDecl *Destructor; variable
1464 : Destructor(destructor) {} in CXXTemporary()
1468 const CXXDestructorDecl *Destructor);
1470 const CXXDestructorDecl *getDestructor() const { return Destructor; } in getDestructor()
1473 Destructor = Dtor; in setDestructor()
H A DPropertiesBase.td592 foreach kind = ["Constructor", "Destructor", "ConversionFunction"] in {
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprCXX.cpp1102 const CXXDestructorDecl *Destructor) { in Create() argument
1103 return new (C) CXXTemporary(Destructor); in Create()
H A DASTContext.cpp15146 auto *Destructor = dyn_cast<CXXDestructorDecl>(Method); in useAbbreviatedThunkName() local
15150 if (Destructor) in useAbbreviatedThunkName()
15151 Mangler->mangleCXXDtorThunk(Destructor, VirtualMethodDecl.getDtorType(), in useAbbreviatedThunkName()
15159 if (Destructor) in useAbbreviatedThunkName()
15160 Mangler->mangleCXXDtorThunk(Destructor, VirtualMethodDecl.getDtorType(), in useAbbreviatedThunkName()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DRetainSummaryManager.cpp675 case AnyCall::Destructor: in getSummary()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h428 Destructor, enumerator
5529 CXXDestructorDecl *Destructor);
5535 void AdjustDestructorExceptionSpec(CXXDestructorDecl *Destructor);
5997 bool CheckDestructor(CXXDestructorDecl *Destructor);
6346 llvm::to_underlying(CXXSpecialMemberKind::Destructor), in getDiagnosticIndex()

12