Lines Matching refs:OperatorDelete
2311 FunctionDecl *OperatorDelete = nullptr; in BuildCXXNew() local
2327 OperatorNew, OperatorDelete)) in BuildCXXNew()
2503 if (OperatorDelete) { in BuildCXXNew()
2504 if (DiagnoseUseOfDecl(OperatorDelete, StartLoc)) in BuildCXXNew()
2506 MarkFunctionReferenced(StartLoc, OperatorDelete); in BuildCXXNew()
2509 return CXXNewExpr::Create(Context, UseGlobal, OperatorNew, OperatorDelete, in BuildCXXNew()
2702 FunctionDecl *&OperatorDelete, in FindAllocationFunctions() argument
2799 OperatorDelete = nullptr; in FindAllocationFunctions()
2954 OperatorDelete = Matches[0].second; in FindAllocationFunctions()
2963 isNonPlacementDeallocationFunction(*this, OperatorDelete)) { in FindAllocationFunctions()
2965 DeclAccessPair::make(OperatorDelete, AS_public)); in FindAllocationFunctions()
2986 if (!OperatorDelete->isImplicit()) in FindAllocationFunctions()
2987 Diag(OperatorDelete->getLocation(), diag::note_previous_decl) in FindAllocationFunctions()
3277 FunctionDecl *OperatorDelete = nullptr; in FindDeallocationFunctionForDestructor() local
3278 if (FindDeallocationFunction(Loc, RD, Name, OperatorDelete)) in FindDeallocationFunctionForDestructor()
3280 if (OperatorDelete) in FindDeallocationFunctionForDestructor()
3281 return OperatorDelete; in FindDeallocationFunctionForDestructor()
3633 FunctionDecl *OperatorDelete = nullptr; in ActOnCXXDelete() local
3757 OperatorDelete)) in ActOnCXXDelete()
3771 else if (isa_and_nonnull<CXXMethodDecl>(OperatorDelete)) in ActOnCXXDelete()
3774 DeclAccessPair::make(OperatorDelete, AS_public)) in ActOnCXXDelete()
3792 if (!OperatorDelete) { in ActOnCXXDelete()
3805 OperatorDelete = FindUsualDeallocationFunction(StartLoc, CanProvideSize, in ActOnCXXDelete()
3809 MarkFunctionReferenced(StartLoc, OperatorDelete); in ActOnCXXDelete()
3822 DiagnoseUseOfDecl(OperatorDelete, StartLoc); in ActOnCXXDelete()
3828 QualType ParamType = OperatorDelete->getParamDecl(0)->getType(); in ActOnCXXDelete()
3847 UsualArrayDeleteWantsSize, OperatorDelete, Ex.get(), StartLoc); in ActOnCXXDelete()