Home
last modified time | relevance | path

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

/external/llvm-project/clang/lib/Sema/
DSemaCoroutine.cpp1264 FunctionDecl *OperatorNew = nullptr; in makeNewAndDeleteExpr() local
1313 OperatorNew, UnusedResult, /*Diagnose*/ false); in makeNewAndDeleteExpr()
1319 if (!OperatorNew && !PlacementArgs.empty()) { in makeNewAndDeleteExpr()
1324 OperatorNew, UnusedResult, /*Diagnose*/ false); in makeNewAndDeleteExpr()
1331 if (!OperatorNew) { in makeNewAndDeleteExpr()
1335 OperatorNew, UnusedResult); in makeNewAndDeleteExpr()
1339 OperatorNew && !isa<CXXRecordDecl>(OperatorNew->getDeclContext()); in makeNewAndDeleteExpr()
1343 if (RequiresNoThrowAlloc && (!OperatorNew || IsGlobalOverload)) { in makeNewAndDeleteExpr()
1348 OperatorNew = nullptr; in makeNewAndDeleteExpr()
1352 OperatorNew, UnusedResult); in makeNewAndDeleteExpr()
[all …]
DSemaExprCXX.cpp2133 FunctionDecl *OperatorNew = nullptr; in BuildCXXNew() local
2147 OperatorNew, OperatorDelete)) in BuildCXXNew()
2158 if (OperatorNew) { in BuildCXXNew()
2159 auto *Proto = OperatorNew->getType()->castAs<FunctionProtoType>(); in BuildCXXNew()
2168 if (GatherArgumentsForCall(PlacementLParen, OperatorNew, Proto, in BuildCXXNew()
2237 DiagnoseSentinelCalls(OperatorNew, PlacementLParen, CallArgs); in BuildCXXNew()
2239 checkCall(OperatorNew, Proto, /*ThisArg=*/nullptr, CallArgs, in BuildCXXNew()
2245 (OperatorNew->isImplicit() || in BuildCXXNew()
2246 (OperatorNew->getBeginLoc().isValid() && in BuildCXXNew()
2247 getSourceManager().isInSystemHeader(OperatorNew->getBeginLoc())))) { in BuildCXXNew()
[all …]
DTreeTransform.h11506 FunctionDecl *OperatorNew = nullptr; in TransformCXXNewExpr() local
11508 OperatorNew = cast_or_null<FunctionDecl>( in TransformCXXNewExpr()
11510 if (!OperatorNew) in TransformCXXNewExpr()
11526 OperatorNew == E->getOperatorNew() && in TransformCXXNewExpr()
11531 if (OperatorNew) in TransformCXXNewExpr()
11532 SemaRef.MarkFunctionReferenced(E->getBeginLoc(), OperatorNew); in TransformCXXNewExpr()
/external/clang/test/SemaTemplate/
Ddependent-names.cpp391 namespace OperatorNew { namespace
400 void *operator new(size_t, OperatorNew::X); // expected-note-re {{should be declared prior to the c…
401 template void OperatorNew::f(OperatorNew::X); // expected-note {{instantiation of}}
/external/llvm-project/clang/test/SemaTemplate/
Ddependent-names.cpp388 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}}
/external/clang/lib/Sema/
DSemaExprCXX.cpp1742 FunctionDecl *OperatorNew = nullptr; in BuildCXXNew() local
1750 OperatorNew, OperatorDelete)) in BuildCXXNew()
1761 if (OperatorNew) { in BuildCXXNew()
1763 OperatorNew->getType()->getAs<FunctionProtoType>(); in BuildCXXNew()
1770 if (GatherArgumentsForCall(PlacementLParen, OperatorNew, Proto, 1, in BuildCXXNew()
1778 DiagnoseSentinelCalls(OperatorNew, PlacementLParen, PlacementArgs); in BuildCXXNew()
1785 if (PlacementArgs.empty() && OperatorNew && in BuildCXXNew()
1786 (OperatorNew->isImplicit() || in BuildCXXNew()
1787 (OperatorNew->getLocStart().isValid() && in BuildCXXNew()
1788 getSourceManager().isInSystemHeader(OperatorNew->getLocStart())))) { in BuildCXXNew()
[all …]
DTreeTransform.h9453 FunctionDecl *OperatorNew = nullptr; in TransformCXXNewExpr() local
9455 OperatorNew = cast_or_null<FunctionDecl>( in TransformCXXNewExpr()
9458 if (!OperatorNew) in TransformCXXNewExpr()
9475 OperatorNew == E->getOperatorNew() && in TransformCXXNewExpr()
9480 if (OperatorNew) in TransformCXXNewExpr()
9481 SemaRef.MarkFunctionReferenced(E->getLocStart(), OperatorNew); in TransformCXXNewExpr()
/external/clang/test/Analysis/
Dinline.cpp312 namespace OperatorNew { namespace
/external/llvm-project/clang/test/Analysis/
Dinline.cpp312 namespace OperatorNew { namespace
/external/llvm-project/clang/lib/AST/
DExprCXX.cpp181 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()
DExprConstant.cpp9321 FunctionDecl *OperatorNew = E->getOperatorNew(); in VisitCXXNewExpr() local
9325 if (OperatorNew->isReservedGlobalPlacementOperator() && in VisitCXXNewExpr()
9334 } else if (!OperatorNew->isReplaceableGlobalAllocationFunction()) { in VisitCXXNewExpr()
9336 << isa<CXXMethodDecl>(OperatorNew) << OperatorNew; in VisitCXXNewExpr()
/external/llvm-project/clang/include/clang/AST/
DExprCXX.h2137 FunctionDecl *OperatorNew; variable
2194 CXXNewExpr(bool IsGlobalNew, FunctionDecl *OperatorNew,
2209 Create(const ASTContext &Ctx, bool IsGlobalNew, FunctionDecl *OperatorNew,
2247 FunctionDecl *getOperatorNew() const { return OperatorNew; } in getOperatorNew()
2248 void setOperatorNew(FunctionDecl *D) { OperatorNew = D; } in setOperatorNew()
/external/clang/include/clang/AST/
DExprCXX.h1809 FunctionDecl *OperatorNew; variable
1889 FunctionDecl *getOperatorNew() const { return OperatorNew; } in getOperatorNew()
1890 void setOperatorNew(FunctionDecl *D) { OperatorNew = D; } in setOperatorNew()
/external/clang/lib/AST/
DExprCXX.cpp76 SubExprs(nullptr), OperatorNew(operatorNew), OperatorDelete(operatorDelete), in CXXNewExpr()
/external/clang/include/clang/Sema/
DSema.h4789 FunctionDecl *&OperatorNew,
/external/llvm-project/clang/include/clang/Sema/
DSema.h6108 FunctionDecl *&OperatorNew,