Home
last modified time | relevance | path

Searched refs:OperatorNew (Results 1 – 10 of 10) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCoroutine.cpp1431 FunctionDecl *OperatorNew = nullptr; in makeNewAndDeleteExpr() local
1473 WithoutPlacementArgs ? MultiExprArg{} : PlacementArgs, OperatorNew, in makeNewAndDeleteExpr()
1475 assert(!OperatorNew || !OperatorNew->isTypeAwareOperatorNewOrDelete()); in makeNewAndDeleteExpr()
1499 if (!OperatorNew || (S.getLangOpts().CoroAlignedAllocation && in makeNewAndDeleteExpr()
1525 if (!OperatorNew || !isAlignedAllocation(IAP.PassAlignment)) { in makeNewAndDeleteExpr()
1526 FoundNonAlignedInPromise = OperatorNew; in makeNewAndDeleteExpr()
1532 if (!OperatorNew && !PlacementArgs.empty()) in makeNewAndDeleteExpr()
1539 OperatorNew && !isa<CXXRecordDecl>(OperatorNew->getDeclContext()); in makeNewAndDeleteExpr()
1543 if (RequiresNoThrowAlloc && (!OperatorNew || IsGlobalOverload)) { in makeNewAndDeleteExpr()
1548 OperatorNew = nullptr; in makeNewAndDeleteExpr()
[all …]
H A DSemaExprCXX.cpp2413 FunctionDecl *OperatorNew = nullptr; in BuildCXXNew() local
2435 PlacementArgs, OperatorNew, OperatorDelete)) in BuildCXXNew()
2446 if (OperatorNew) { in BuildCXXNew()
2447 auto *Proto = OperatorNew->getType()->castAs<FunctionProtoType>(); in BuildCXXNew()
2458 assert(OperatorNew->isTypeAwareOperatorNewOrDelete()); in BuildCXXNew()
2463 if (GatherArgumentsForCall(AllocationParameterRange.getBegin(), OperatorNew, in BuildCXXNew()
2531 DiagnoseSentinelCalls(OperatorNew, PlacementLParen, CallArgs); in BuildCXXNew()
2533 checkCall(OperatorNew, Proto, /*ThisArg=*/nullptr, CallArgs, in BuildCXXNew()
2539 (OperatorNew->isImplicit() || in BuildCXXNew()
2540 (OperatorNew->getBeginLoc().isValid() && in BuildCXXNew()
[all …]
H A DSemaFunctionEffects.cpp103 enum class SpecialFuncType : uint8_t { None, OperatorNew, OperatorDelete }; enumerator
1238 CallableInfo CI(*FD, SpecialFuncType::OperatorNew); in VisitCXXNewExpr()
H A DTreeTransform.h14504 FunctionDecl *OperatorNew = nullptr; in TransformCXXNewExpr() local
14506 OperatorNew = cast_or_null<FunctionDecl>( in TransformCXXNewExpr()
14508 if (!OperatorNew) in TransformCXXNewExpr()
14524 OperatorNew == E->getOperatorNew() && in TransformCXXNewExpr()
14529 if (OperatorNew) in TransformCXXNewExpr()
14530 SemaRef.MarkFunctionReferenced(E->getBeginLoc(), OperatorNew); in TransformCXXNewExpr()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DInterp.cpp1848 const FunctionDecl *OperatorNew = NewExpr->getOperatorNew(); in InvalidNewDeleteExpr() local
1857 !OperatorNew in InvalidNewDeleteExpr()
1861 << isa<CXXMethodDecl>(OperatorNew) << OperatorNew; in InvalidNewDeleteExpr()
1865 !OperatorNew->isReservedGlobalPlacementOperator()) { in InvalidNewDeleteExpr()
H A DCompiler.cpp3444 const FunctionDecl *OperatorNew = E->getOperatorNew(); in VisitCXXNewExpr() local
3470 if (OperatorNew->isReservedGlobalPlacementOperator()) in VisitCXXNewExpr()
3477 } else if (!OperatorNew in VisitCXXNewExpr()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprCXX.cpp228 CXXNewExpr::CXXNewExpr(bool IsGlobalNew, FunctionDecl *OperatorNew, in CXXNewExpr() argument
239 OperatorNew(OperatorNew), OperatorDelete(OperatorDelete), in CXXNewExpr()
294 const ASTContext &Ctx, bool IsGlobalNew, FunctionDecl *OperatorNew, in Create() argument
310 IsGlobalNew, OperatorNew, OperatorDelete, IAP, UsualArrayDeleteWantsSize, in Create()
H A DExprConstant.cpp10318 FunctionDecl *OperatorNew = E->getOperatorNew(); in VisitCXXNewExpr() local
10341 } else if (OperatorNew->isReservedGlobalPlacementOperator()) { in VisitCXXNewExpr()
10344 OperatorNew->hasAttr<MSConstexprAttr>())) { in VisitCXXNewExpr()
10360 } else if (!OperatorNew in VisitCXXNewExpr()
10363 << isa<CXXMethodDecl>(OperatorNew) << OperatorNew; in VisitCXXNewExpr()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DExprCXX.h2341 FunctionDecl *OperatorNew; variable
2385 CXXNewExpr(bool IsGlobalNew, FunctionDecl *OperatorNew,
2401 Create(const ASTContext &Ctx, bool IsGlobalNew, FunctionDecl *OperatorNew,
2439 FunctionDecl *getOperatorNew() const { return OperatorNew; } in getOperatorNew()
2440 void setOperatorNew(FunctionDecl *D) { OperatorNew = D; } in setOperatorNew()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h8503 MultiExprArg PlaceArgs, FunctionDecl *&OperatorNew,