| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | UnhandledExceptionAtNewCheck.cpp | 36 FunctionDecl *OperatorNew = Node.getOperatorNew(); in AST_MATCHER() local 37 if (!OperatorNew) in AST_MATCHER() 39 return !OperatorNew->getType()->castAs<FunctionProtoType>()->isNothrow(); in AST_MATCHER()
|
| /llvm-project-15.0.7/clang/test/SemaTemplate/ |
| H A D | dependent-names.cpp | 388 namespace OperatorNew { namespace 397 void *operator new(size_t, OperatorNew::X); // expected-note-re {{should be declared prior to the c… 398 template void OperatorNew::f(OperatorNew::X); // expected-note {{instantiation of}}
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaCoroutine.cpp | 1321 FunctionDecl *OperatorNew = nullptr; in makeNewAndDeleteExpr() local 1366 if (!OperatorNew && !PlacementArgs.empty() && PromiseContainsNew) { in makeNewAndDeleteExpr() 1372 OperatorNew && !isa<CXXRecordDecl>(OperatorNew->getDeclContext()); in makeNewAndDeleteExpr() 1376 if (RequiresNoThrowAlloc && (!OperatorNew || IsGlobalOverload)) { in makeNewAndDeleteExpr() 1381 OperatorNew = nullptr; in makeNewAndDeleteExpr() 1385 OperatorNew, UnusedResult); in makeNewAndDeleteExpr() 1388 if (!OperatorNew) { in makeNewAndDeleteExpr() 1398 S.Diag(OperatorNew->getLocation(), in makeNewAndDeleteExpr() 1400 << OperatorNew; in makeNewAndDeleteExpr() 1402 << OperatorNew; in makeNewAndDeleteExpr() [all …]
|
| H A D | SemaExprCXX.cpp | 2221 FunctionDecl *OperatorNew = nullptr; in BuildCXXNew() local 2235 OperatorNew, OperatorDelete)) in BuildCXXNew() 2246 if (OperatorNew) { in BuildCXXNew() 2326 checkCall(OperatorNew, Proto, /*ThisArg=*/nullptr, CallArgs, in BuildCXXNew() 2332 (OperatorNew->isImplicit() || in BuildCXXNew() 2333 (OperatorNew->getBeginLoc().isValid() && in BuildCXXNew() 2405 if (OperatorNew) { in BuildCXXNew() 2406 if (DiagnoseUseOfDecl(OperatorNew, StartLoc)) in BuildCXXNew() 2408 MarkFunctionReferenced(StartLoc, OperatorNew); in BuildCXXNew() 2614 FunctionDecl *&OperatorNew, in FindAllocationFunctions() argument [all …]
|
| H A D | TreeTransform.h | 12104 FunctionDecl *OperatorNew = nullptr; in TransformCXXNewExpr() local 12106 OperatorNew = cast_or_null<FunctionDecl>( in TransformCXXNewExpr() 12108 if (!OperatorNew) in TransformCXXNewExpr() 12124 OperatorNew == E->getOperatorNew() && in TransformCXXNewExpr() 12129 if (OperatorNew) in TransformCXXNewExpr() 12130 SemaRef.MarkFunctionReferenced(E->getBeginLoc(), OperatorNew); in TransformCXXNewExpr()
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | inline.cpp | 312 namespace OperatorNew { namespace
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ExprCXX.cpp | 181 CXXNewExpr::CXXNewExpr(bool IsGlobalNew, FunctionDecl *OperatorNew, in CXXNewExpr() argument 191 OperatorNew(OperatorNew), OperatorDelete(OperatorDelete), in CXXNewExpr() 244 FunctionDecl *OperatorNew, FunctionDecl *OperatorDelete, in Create() argument 260 CXXNewExpr(IsGlobalNew, OperatorNew, OperatorDelete, ShouldPassAlignment, in Create()
|
| H A D | ExprConstant.cpp | 9486 FunctionDecl *OperatorNew = E->getOperatorNew(); in VisitCXXNewExpr() local 9490 if (OperatorNew->isReservedGlobalPlacementOperator() && in VisitCXXNewExpr() 9499 } else if (!OperatorNew->isReplaceableGlobalAllocationFunction()) { in VisitCXXNewExpr() 9501 << isa<CXXMethodDecl>(OperatorNew) << OperatorNew; in VisitCXXNewExpr()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | ExprCXX.h | 2147 FunctionDecl *OperatorNew; variable 2204 CXXNewExpr(bool IsGlobalNew, FunctionDecl *OperatorNew, 2219 Create(const ASTContext &Ctx, bool IsGlobalNew, FunctionDecl *OperatorNew, 2257 FunctionDecl *getOperatorNew() const { return OperatorNew; } in getOperatorNew() 2258 void setOperatorNew(FunctionDecl *D) { OperatorNew = D; } in setOperatorNew()
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | Sema.h | 6612 FunctionDecl *&OperatorNew,
|