Lines Matching refs:OperatorDelete

2222   FunctionDecl *OperatorDelete = nullptr;  in BuildCXXNew()  local
2235 OperatorNew, OperatorDelete)) in BuildCXXNew()
2410 if (OperatorDelete) { in BuildCXXNew()
2411 if (DiagnoseUseOfDecl(OperatorDelete, StartLoc)) in BuildCXXNew()
2413 MarkFunctionReferenced(StartLoc, OperatorDelete); in BuildCXXNew()
2416 return CXXNewExpr::Create(Context, UseGlobal, OperatorNew, OperatorDelete, in BuildCXXNew()
2615 FunctionDecl *&OperatorDelete, in FindAllocationFunctions() argument
2711 OperatorDelete = nullptr; in FindAllocationFunctions()
2866 OperatorDelete = Matches[0].second; in FindAllocationFunctions()
2875 isNonPlacementDeallocationFunction(*this, OperatorDelete)) { in FindAllocationFunctions()
2877 DeclAccessPair::make(OperatorDelete, AS_public)); in FindAllocationFunctions()
2898 if (!OperatorDelete->isImplicit()) in FindAllocationFunctions()
2899 Diag(OperatorDelete->getLocation(), diag::note_previous_decl) in FindAllocationFunctions()
3164 FunctionDecl *OperatorDelete = nullptr; in FindDeallocationFunctionForDestructor() local
3165 if (FindDeallocationFunction(Loc, RD, Name, OperatorDelete)) in FindDeallocationFunctionForDestructor()
3167 if (OperatorDelete) in FindDeallocationFunctionForDestructor()
3168 return OperatorDelete; in FindDeallocationFunctionForDestructor()
3520 FunctionDecl *OperatorDelete = nullptr; in ActOnCXXDelete() local
3638 OperatorDelete)) in ActOnCXXDelete()
3652 else if (OperatorDelete && isa<CXXMethodDecl>(OperatorDelete)) in ActOnCXXDelete()
3655 DeclAccessPair::make(OperatorDelete, AS_public)) in ActOnCXXDelete()
3673 if (!OperatorDelete) { in ActOnCXXDelete()
3686 OperatorDelete = FindUsualDeallocationFunction(StartLoc, CanProvideSize, in ActOnCXXDelete()
3690 MarkFunctionReferenced(StartLoc, OperatorDelete); in ActOnCXXDelete()
3703 DiagnoseUseOfDecl(OperatorDelete, StartLoc); in ActOnCXXDelete()
3709 QualType ParamType = OperatorDelete->getParamDecl(0)->getType(); in ActOnCXXDelete()
3728 UsualArrayDeleteWantsSize, OperatorDelete, Ex.get(), StartLoc); in ActOnCXXDelete()