Lines Matching refs:OperatorNew
2221 FunctionDecl *OperatorNew = nullptr; in BuildCXXNew() local
2235 OperatorNew, OperatorDelete)) in BuildCXXNew()
2246 if (OperatorNew) { in BuildCXXNew()
2247 auto *Proto = OperatorNew->getType()->castAs<FunctionProtoType>(); in BuildCXXNew()
2256 if (GatherArgumentsForCall(PlacementLParen, OperatorNew, Proto, in BuildCXXNew()
2324 DiagnoseSentinelCalls(OperatorNew, PlacementLParen, CallArgs); in BuildCXXNew()
2326 checkCall(OperatorNew, Proto, /*ThisArg=*/nullptr, CallArgs, in BuildCXXNew()
2332 (OperatorNew->isImplicit() || in BuildCXXNew()
2333 (OperatorNew->getBeginLoc().isValid() && in BuildCXXNew()
2334 getSourceManager().isInSystemHeader(OperatorNew->getBeginLoc())))) { in BuildCXXNew()
2405 if (OperatorNew) { in BuildCXXNew()
2406 if (DiagnoseUseOfDecl(OperatorNew, StartLoc)) in BuildCXXNew()
2408 MarkFunctionReferenced(StartLoc, OperatorNew); in BuildCXXNew()
2416 return CXXNewExpr::Create(Context, UseGlobal, OperatorNew, OperatorDelete, in BuildCXXNew()
2614 FunctionDecl *&OperatorNew, in FindAllocationFunctions() argument
2704 OperatorNew, /*Candidates=*/nullptr, in FindAllocationFunctions()
2718 OperatorNew->getDeclName().getCXXOverloadedOperator() == OO_Array_New in FindAllocationFunctions()
2782 bool isPlacementNew = !PlaceArgs.empty() || OperatorNew->param_size() != 1 || in FindAllocationFunctions()
2783 OperatorNew->isVariadic(); in FindAllocationFunctions()
2798 auto *Proto = OperatorNew->getType()->castAs<FunctionProtoType>(); in FindAllocationFunctions()