Lines Matching refs:OperatorDelete

2163   FunctionDecl *OperatorDelete = nullptr;  in BuildCXXNew()  local
2176 OperatorNew, OperatorDelete)) in BuildCXXNew()
2355 if (OperatorDelete) { in BuildCXXNew()
2356 if (DiagnoseUseOfDecl(OperatorDelete, StartLoc)) in BuildCXXNew()
2358 MarkFunctionReferenced(StartLoc, OperatorDelete); in BuildCXXNew()
2361 return CXXNewExpr::Create(Context, UseGlobal, OperatorNew, OperatorDelete, in BuildCXXNew()
2560 FunctionDecl *&OperatorDelete, in FindAllocationFunctions() argument
2657 OperatorDelete = nullptr; in FindAllocationFunctions()
2811 OperatorDelete = Matches[0].second; in FindAllocationFunctions()
2820 isNonPlacementDeallocationFunction(*this, OperatorDelete)) { in FindAllocationFunctions()
2822 DeclAccessPair::make(OperatorDelete, AS_public)); in FindAllocationFunctions()
2843 if (!OperatorDelete->isImplicit()) in FindAllocationFunctions()
2844 Diag(OperatorDelete->getLocation(), diag::note_previous_decl) in FindAllocationFunctions()
3101 FunctionDecl *OperatorDelete = nullptr; in FindDeallocationFunctionForDestructor() local
3102 if (FindDeallocationFunction(Loc, RD, Name, OperatorDelete)) in FindDeallocationFunctionForDestructor()
3104 if (OperatorDelete) in FindDeallocationFunctionForDestructor()
3105 return OperatorDelete; in FindDeallocationFunctionForDestructor()
3457 FunctionDecl *OperatorDelete = nullptr; in ActOnCXXDelete() local
3575 OperatorDelete)) in ActOnCXXDelete()
3589 else if (OperatorDelete && isa<CXXMethodDecl>(OperatorDelete)) in ActOnCXXDelete()
3592 DeclAccessPair::make(OperatorDelete, AS_public)) in ActOnCXXDelete()
3610 if (!OperatorDelete) { in ActOnCXXDelete()
3623 OperatorDelete = FindUsualDeallocationFunction(StartLoc, CanProvideSize, in ActOnCXXDelete()
3627 MarkFunctionReferenced(StartLoc, OperatorDelete); in ActOnCXXDelete()
3640 DiagnoseUseOfDecl(OperatorDelete, StartLoc); in ActOnCXXDelete()
3646 QualType ParamType = OperatorDelete->getParamDecl(0)->getType(); in ActOnCXXDelete()
3665 UsualArrayDeleteWantsSize, OperatorDelete, Ex.get(), StartLoc); in ActOnCXXDelete()