Lines Matching refs:OperatorDelete
2134 FunctionDecl *OperatorDelete = nullptr; in BuildCXXNew() local
2147 OperatorNew, OperatorDelete)) in BuildCXXNew()
2326 if (OperatorDelete) { in BuildCXXNew()
2327 if (DiagnoseUseOfDecl(OperatorDelete, StartLoc)) in BuildCXXNew()
2329 MarkFunctionReferenced(StartLoc, OperatorDelete); in BuildCXXNew()
2332 return CXXNewExpr::Create(Context, UseGlobal, OperatorNew, OperatorDelete, in BuildCXXNew()
2507 FunctionDecl *&OperatorDelete, in FindAllocationFunctions() argument
2604 OperatorDelete = nullptr; in FindAllocationFunctions()
2742 OperatorDelete = Matches[0].second; in FindAllocationFunctions()
2751 isNonPlacementDeallocationFunction(*this, OperatorDelete)) { in FindAllocationFunctions()
2753 DeclAccessPair::make(OperatorDelete, AS_public)); in FindAllocationFunctions()
2774 if (!OperatorDelete->isImplicit()) in FindAllocationFunctions()
2775 Diag(OperatorDelete->getLocation(), diag::note_previous_decl) in FindAllocationFunctions()
3032 FunctionDecl *OperatorDelete = nullptr; in FindDeallocationFunctionForDestructor() local
3033 if (FindDeallocationFunction(Loc, RD, Name, OperatorDelete)) in FindDeallocationFunctionForDestructor()
3035 if (OperatorDelete) in FindDeallocationFunctionForDestructor()
3036 return OperatorDelete; in FindDeallocationFunctionForDestructor()
3388 FunctionDecl *OperatorDelete = nullptr; in ActOnCXXDelete() local
3506 OperatorDelete)) in ActOnCXXDelete()
3520 else if (OperatorDelete && isa<CXXMethodDecl>(OperatorDelete)) in ActOnCXXDelete()
3523 DeclAccessPair::make(OperatorDelete, AS_public)) in ActOnCXXDelete()
3541 if (!OperatorDelete) { in ActOnCXXDelete()
3554 OperatorDelete = FindUsualDeallocationFunction(StartLoc, CanProvideSize, in ActOnCXXDelete()
3558 MarkFunctionReferenced(StartLoc, OperatorDelete); in ActOnCXXDelete()
3571 DiagnoseUseOfDecl(OperatorDelete, StartLoc); in ActOnCXXDelete()
3577 QualType ParamType = OperatorDelete->getParamDecl(0)->getType(); in ActOnCXXDelete()
3596 UsualArrayDeleteWantsSize, OperatorDelete, Ex.get(), StartLoc); in ActOnCXXDelete()