Lines Matching refs:OperatorDelete

2243   FunctionDecl *OperatorDelete = nullptr;  in BuildCXXNew()  local
2256 OperatorNew, OperatorDelete)) in BuildCXXNew()
2431 if (OperatorDelete) { in BuildCXXNew()
2432 if (DiagnoseUseOfDecl(OperatorDelete, StartLoc)) in BuildCXXNew()
2434 MarkFunctionReferenced(StartLoc, OperatorDelete); in BuildCXXNew()
2437 return CXXNewExpr::Create(Context, UseGlobal, OperatorNew, OperatorDelete, in BuildCXXNew()
2636 FunctionDecl *&OperatorDelete, in FindAllocationFunctions() argument
2734 OperatorDelete = nullptr; in FindAllocationFunctions()
2889 OperatorDelete = Matches[0].second; in FindAllocationFunctions()
2898 isNonPlacementDeallocationFunction(*this, OperatorDelete)) { in FindAllocationFunctions()
2900 DeclAccessPair::make(OperatorDelete, AS_public)); in FindAllocationFunctions()
2921 if (!OperatorDelete->isImplicit()) in FindAllocationFunctions()
2922 Diag(OperatorDelete->getLocation(), diag::note_previous_decl) in FindAllocationFunctions()
3232 FunctionDecl *OperatorDelete = nullptr; in FindDeallocationFunctionForDestructor() local
3233 if (FindDeallocationFunction(Loc, RD, Name, OperatorDelete)) in FindDeallocationFunctionForDestructor()
3235 if (OperatorDelete) in FindDeallocationFunctionForDestructor()
3236 return OperatorDelete; in FindDeallocationFunctionForDestructor()
3590 FunctionDecl *OperatorDelete = nullptr; in ActOnCXXDelete() local
3708 OperatorDelete)) in ActOnCXXDelete()
3722 else if (OperatorDelete && isa<CXXMethodDecl>(OperatorDelete)) in ActOnCXXDelete()
3725 DeclAccessPair::make(OperatorDelete, AS_public)) in ActOnCXXDelete()
3743 if (!OperatorDelete) { in ActOnCXXDelete()
3756 OperatorDelete = FindUsualDeallocationFunction(StartLoc, CanProvideSize, in ActOnCXXDelete()
3760 MarkFunctionReferenced(StartLoc, OperatorDelete); in ActOnCXXDelete()
3773 DiagnoseUseOfDecl(OperatorDelete, StartLoc); in ActOnCXXDelete()
3779 QualType ParamType = OperatorDelete->getParamDecl(0)->getType(); in ActOnCXXDelete()
3798 UsualArrayDeleteWantsSize, OperatorDelete, Ex.get(), StartLoc); in ActOnCXXDelete()