/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
H A D | UnhandledExceptionAtNewCheck.cpp | 34 FunctionDecl *OperatorNew = Node.getOperatorNew(); in AST_MATCHER() local 35 if (!OperatorNew) in AST_MATCHER() 37 return !OperatorNew->getType()->castAs<FunctionProtoType>()->isNothrow(); in AST_MATCHER()
|
H A D | MultipleNewInOneExpressionCheck.cpp | 71 FunctionDecl *OperatorNew = Node.getOperatorNew(); in AST_MATCHER() local 72 if (!OperatorNew) in AST_MATCHER() 74 return !OperatorNew->getType()->castAs<FunctionProtoType>()->isNothrow(); in AST_MATCHER()
|
/llvm-project/clang/lib/Sema/ |
H A D | SemaCoroutine.cpp | 1406 FunctionDecl *OperatorNew = nullptr; in makeNewAndDeleteExpr() 1443 OperatorNew, UnusedResult, /*Diagnose*/ false); in makeNewAndDeleteExpr() 1467 if (!OperatorNew || in makeNewAndDeleteExpr() 1493 if (!OperatorNew || !PassAlignment) { in makeNewAndDeleteExpr() 1494 FoundNonAlignedInPromise = OperatorNew; in makeNewAndDeleteExpr() 1500 if (!OperatorNew && !PlacementArgs.empty()) in makeNewAndDeleteExpr() 1507 OperatorNew && !isa<CXXRecordDecl>(OperatorNew->getDeclContext()); in makeNewAndDeleteExpr() 1511 if (RequiresNoThrowAlloc && (!OperatorNew || IsGlobalOverload)) { in makeNewAndDeleteExpr() 1516 OperatorNew in makeNewAndDeleteExpr() 1363 FunctionDecl *OperatorNew = nullptr; makeNewAndDeleteExpr() local [all...] |
H A D | SemaExprCXX.cpp | 2326 FunctionDecl *OperatorNew = nullptr; in BuildCXXNew() 2343 OperatorNew, OperatorDelete)) in BuildCXXNew() 2354 if (OperatorNew) { in BuildCXXNew() 2355 auto *Proto = OperatorNew->getType()->castAs<FunctionProtoType>(); in BuildCXXNew() 2364 if (GatherArgumentsForCall(PlacementLParen, OperatorNew, Proto, in BuildCXXNew() 2432 DiagnoseSentinelCalls(OperatorNew, PlacementLParen, CallArgs); in BuildCXXNew() 2434 checkCall(OperatorNew, Proto, /*ThisArg=*/nullptr, CallArgs, in BuildCXXNew() 2440 (OperatorNew->isImplicit() || in BuildCXXNew() 2441 (OperatorNew->getBeginLoc().isValid() && in BuildCXXNew() 2442 getSourceManager().isInSystemHeader(OperatorNew in BuildCXXNew() 2310 FunctionDecl *OperatorNew = nullptr; BuildCXXNew() local 2701 FindAllocationFunctions(SourceLocation StartLoc,SourceRange Range,AllocationFunctionScope NewScope,AllocationFunctionScope DeleteScope,QualType AllocType,bool IsArray,bool & PassAlignment,MultiExprArg PlaceArgs,FunctionDecl * & OperatorNew,FunctionDecl * & OperatorDelete,bool Diagnose) FindAllocationFunctions() argument [all...] |
H A D | TreeTransform.h | 14305 FunctionDecl *OperatorNew = nullptr; in TransformLambdaExpr() 14307 OperatorNew = cast_or_null<FunctionDecl>( in TransformLambdaExpr() 14309 if (!OperatorNew) in TransformLambdaExpr() 14325 OperatorNew == E->getOperatorNew() && in TransformLambdaExpr() 14330 if (OperatorNew) in TransformLambdaExpr() 14331 SemaRef.MarkFunctionReferenced(E->getBeginLoc(), OperatorNew); in TransformLambdaExpr() 13353 FunctionDecl *OperatorNew = nullptr; TransformCXXNewExpr() local
|
/llvm-project/clang/test/SemaTemplate/ |
H A D | dependent-names.cpp | 390 namespace OperatorNew { namespace 399 void *operator new(size_t, OperatorNew::X); // expected-note-re {{should be declared prior to the c… 400 template void OperatorNew::f(OperatorNew::X); // expected-note {{instantiation of}}
|
/llvm-project/clang/test/Analysis/ |
H A D | inline.cpp | 312 namespace OperatorNew { namespace
|
/llvm-project/clang/lib/AST/ |
H A D | ExprCXX.cpp | 228 CXXNewExpr::CXXNewExpr(bool IsGlobalNew, FunctionDecl *OperatorNew, 238 OperatorNew(OperatorNew), OperatorDelete(OperatorDelete), in CXXNewExpr() 292 const ASTContext &Ctx, bool IsGlobalNew, FunctionDecl *OperatorNew, in Create() 308 CXXNewExpr(IsGlobalNew, OperatorNew, OperatorDelete, ShouldPassAlignment, in Create() 229 CXXNewExpr(bool IsGlobalNew,FunctionDecl * OperatorNew,FunctionDecl * OperatorDelete,bool ShouldPassAlignment,bool UsualArrayDeleteWantsSize,ArrayRef<Expr * > PlacementArgs,SourceRange TypeIdParens,std::optional<Expr * > ArraySize,CXXNewInitializationStyle InitializationStyle,Expr * Initializer,QualType Ty,TypeSourceInfo * AllocatedTypeInfo,SourceRange Range,SourceRange DirectInitRange) CXXNewExpr() argument 293 Create(const ASTContext & Ctx,bool IsGlobalNew,FunctionDecl * OperatorNew,FunctionDecl * OperatorDelete,bool ShouldPassAlignment,bool UsualArrayDeleteWantsSize,ArrayRef<Expr * > PlacementArgs,SourceRange TypeIdParens,std::optional<Expr * > ArraySize,CXXNewInitializationStyle InitializationStyle,Expr * Initializer,QualType Ty,TypeSourceInfo * AllocatedTypeInfo,SourceRange Range,SourceRange DirectInitRange) Create() argument
|
H A D | ExprConstant.cpp | 10232 FunctionDecl *OperatorNew = E->getOperatorNew(); in HandleClassZeroInitialization() 10255 } else if (OperatorNew->isReservedGlobalPlacementOperator()) { in HandleClassZeroInitialization() 10258 OperatorNew->hasAttr<MSConstexprAttr>())) { in HandleClassZeroInitialization() 10274 } else if (!OperatorNew->isReplaceableGlobalAllocationFunction()) { in ZeroInitialization() 10276 << isa<CXXMethodDecl>(OperatorNew) << OperatorNew; in ZeroInitialization() 9884 FunctionDecl *OperatorNew = E->getOperatorNew(); VisitCXXNewExpr() local
|
/llvm-project/clang/include/clang/AST/ |
H A D | ExprCXX.h | 2247 FunctionDecl *OperatorNew; 2291 CXXNewExpr(bool IsGlobalNew, FunctionDecl *OperatorNew, 2306 Create(const ASTContext &Ctx, bool IsGlobalNew, FunctionDecl *OperatorNew, 2344 FunctionDecl *getOperatorNew() const { return OperatorNew; } in setOperatorNew() 2345 void setOperatorNew(FunctionDecl *D) { OperatorNew = D; } in getOperatorDelete() 2246 FunctionDecl *OperatorNew; global() variable
|
/llvm-project/clang/include/clang/Sema/ |
H A D | Sema.h | 8195 FunctionDecl *&OperatorNew,
|