Home
last modified time | relevance | path

Searched refs:OperatorDelete (Results 1 – 25 of 27) sorted by relevance

12

/external/llvm-project/clang/test/SemaCXX/
Dcxx1z-noexcept-function-type.cpp141 namespace OperatorDelete { namespace
148 void *operator new(size_t, OperatorDelete::W) noexcept(false);
149 void operator delete(void*, OperatorDelete::W) noexcept(false) = delete; // expected-note {{here}}
150 void *operator new(size_t, OperatorDelete::X) noexcept(false);
151 void operator delete(void*, OperatorDelete::X) noexcept(true) = delete; // expected-note {{here}}
152 void *operator new(size_t, OperatorDelete::Y) noexcept(true);
153 void operator delete(void*, OperatorDelete::Y) noexcept(false) = delete; // expected-note {{here}}
154 void *operator new(size_t, OperatorDelete::Z) noexcept(true);
155 void operator delete(void*, OperatorDelete::Z) noexcept(true) = delete; // expected-note {{here}}
156 template<bool N, bool D> void *operator new(size_t, OperatorDelete::T<N, D>) noexcept(N);
[all …]
/external/clang/lib/CodeGen/
DCGExprCXX.cpp1167 const FunctionDecl *OperatorDelete; member in __anon849f9ec30211::CallDeleteDuringNew
1179 const FunctionDecl *OperatorDelete, in CallDeleteDuringNew() argument
1182 : NumPlacementArgs(NumPlacementArgs), OperatorDelete(OperatorDelete), in CallDeleteDuringNew()
1192 = OperatorDelete->getType()->getAs<FunctionProtoType>(); in Emit()
1211 EmitNewDeleteCall(CGF, OperatorDelete, FPT, DeleteArgs); in Emit()
1220 const FunctionDecl *OperatorDelete; member in __anon849f9ec30211::CallDeleteDuringConditionalNew
1234 const FunctionDecl *OperatorDelete, in CallDeleteDuringConditionalNew() argument
1237 : NumPlacementArgs(NumPlacementArgs), OperatorDelete(OperatorDelete), in CallDeleteDuringConditionalNew()
1247 = OperatorDelete->getType()->getAs<FunctionProtoType>(); in Emit()
1270 EmitNewDeleteCall(CGF, OperatorDelete, FPT, DeleteArgs); in Emit()
[all …]
DCodeGenFunction.h1267 void pushCallObjectDeleteCleanup(const FunctionDecl *OperatorDelete,
/external/llvm-project/clang/lib/CodeGen/
DCGExprCXX.cpp1402 const FunctionDecl *OperatorDelete; member in __anone78c75b10411::CallDeleteDuringNew
1417 const FunctionDecl *OperatorDelete, ValueTy Ptr, in CallDeleteDuringNew() argument
1422 OperatorDelete(OperatorDelete), Ptr(Ptr), AllocSize(AllocSize), in CallDeleteDuringNew()
1431 const auto *FPT = OperatorDelete->getType()->castAs<FunctionProtoType>(); in Emit()
1447 Params = getUsualDeleteParams(OperatorDelete); in Emit()
1474 EmitNewDeleteCall(CGF, OperatorDelete, FPT, DeleteArgs); in Emit()
1847 const FunctionDecl *OperatorDelete; member
1851 const FunctionDecl *OperatorDelete, in CallObjectDelete()
1853 : Ptr(Ptr), OperatorDelete(OperatorDelete), ElementType(ElementType) {} in CallObjectDelete()
1856 CGF.EmitDeleteCall(OperatorDelete, Ptr, ElementType); in Emit()
[all …]
DCodeGenFunction.h1955 void pushCallObjectDeleteCleanup(const FunctionDecl *OperatorDelete,
/external/llvm-project/clang/lib/Sema/
DSemaCoroutine.cpp1063 FunctionDecl *OperatorDelete = nullptr; in findDeleteForPromise() local
1071 if (S.FindDeallocationFunction(Loc, PointeeRD, DeleteName, OperatorDelete)) in findDeleteForPromise()
1074 if (!OperatorDelete) { in findDeleteForPromise()
1078 OperatorDelete = S.FindUsualDeallocationFunction(Loc, CanProvideSize, in findDeleteForPromise()
1081 S.MarkFunctionReferenced(Loc, OperatorDelete); in findDeleteForPromise()
1082 return OperatorDelete; in findDeleteForPromise()
1265 FunctionDecl *OperatorDelete = nullptr; in makeNewAndDeleteExpr() local
1370 if ((OperatorDelete = findDeleteForPromise(S, Loc, PromiseType)) == nullptr) in makeNewAndDeleteExpr()
1398 QualType OpDeleteQualType = OperatorDelete->getType(); in makeNewAndDeleteExpr()
1401 S.BuildDeclRefExpr(OperatorDelete, OpDeleteQualType, VK_LValue, Loc); in makeNewAndDeleteExpr()
DSemaExprCXX.cpp2134 FunctionDecl *OperatorDelete = nullptr; in BuildCXXNew() local
2147 OperatorNew, OperatorDelete)) in BuildCXXNew()
2326 if (OperatorDelete) { in BuildCXXNew()
2327 if (DiagnoseUseOfDecl(OperatorDelete, StartLoc)) in BuildCXXNew()
2329 MarkFunctionReferenced(StartLoc, OperatorDelete); in BuildCXXNew()
2332 return CXXNewExpr::Create(Context, UseGlobal, OperatorNew, OperatorDelete, in BuildCXXNew()
2507 FunctionDecl *&OperatorDelete, in FindAllocationFunctions() argument
2604 OperatorDelete = nullptr; in FindAllocationFunctions()
2742 OperatorDelete = Matches[0].second; in FindAllocationFunctions()
2751 isNonPlacementDeallocationFunction(*this, OperatorDelete)) { in FindAllocationFunctions()
[all …]
DTreeTransform.h11514 FunctionDecl *OperatorDelete = nullptr; in TransformCXXNewExpr() local
11516 OperatorDelete = cast_or_null<FunctionDecl>( in TransformCXXNewExpr()
11518 if (!OperatorDelete) in TransformCXXNewExpr()
11527 OperatorDelete == E->getOperatorDelete() && in TransformCXXNewExpr()
11533 if (OperatorDelete) in TransformCXXNewExpr()
11534 SemaRef.MarkFunctionReferenced(E->getBeginLoc(), OperatorDelete); in TransformCXXNewExpr()
11590 FunctionDecl *OperatorDelete = nullptr; in TransformCXXDeleteExpr() local
11592 OperatorDelete = cast_or_null<FunctionDecl>( in TransformCXXDeleteExpr()
11594 if (!OperatorDelete) in TransformCXXDeleteExpr()
11600 OperatorDelete == E->getOperatorDelete()) { in TransformCXXDeleteExpr()
[all …]
DSemaDeclCXX.cpp9148 FunctionDecl *OperatorDelete = nullptr; in ShouldDeleteSpecialMember() local
9152 OperatorDelete, /*Diagnose*/false)) { in ShouldDeleteSpecialMember()
10283 if (FunctionDecl *OperatorDelete = in CheckDestructor() local
10290 if (OperatorDelete->isDestroyingOperatorDelete()) { in CheckDestructor()
10291 QualType ParamType = OperatorDelete->getParamDecl(0)->getType(); in CheckDestructor()
10298 ActOnCXXThis(OperatorDelete->getParamDecl(0)->getLocation()); in CheckDestructor()
10311 DiagnoseUseOfDecl(OperatorDelete, Loc); in CheckDestructor()
10312 MarkFunctionReferenced(Loc, OperatorDelete); in CheckDestructor()
10313 Destructor->setOperatorDelete(OperatorDelete, ThisArg); in CheckDestructor()
/external/clang/lib/Sema/
DSemaExprCXX.cpp1743 FunctionDecl *OperatorDelete = nullptr; in BuildCXXNew() local
1750 OperatorNew, OperatorDelete)) in BuildCXXNew()
1866 if (OperatorDelete) { in BuildCXXNew()
1867 if (DiagnoseUseOfDecl(OperatorDelete, StartLoc)) in BuildCXXNew()
1869 MarkFunctionReferenced(StartLoc, OperatorDelete); in BuildCXXNew()
1891 CXXNewExpr(Context, UseGlobal, OperatorNew, OperatorDelete, in BuildCXXNew()
1961 FunctionDecl *&OperatorDelete) { in FindAllocationFunctions() argument
2029 OperatorDelete = nullptr; in FindAllocationFunctions()
2152 OperatorDelete = Matches[0].second; in FindAllocationFunctions()
2161 isNonPlacementDeallocationFunction(*this, OperatorDelete)) { in FindAllocationFunctions()
[all …]
DTreeTransform.h9462 FunctionDecl *OperatorDelete = nullptr; in TransformCXXNewExpr() local
9464 OperatorDelete = cast_or_null<FunctionDecl>( in TransformCXXNewExpr()
9467 if (!OperatorDelete) in TransformCXXNewExpr()
9476 OperatorDelete == E->getOperatorDelete() && in TransformCXXNewExpr()
9482 if (OperatorDelete) in TransformCXXNewExpr()
9483 SemaRef.MarkFunctionReferenced(E->getLocStart(), OperatorDelete); in TransformCXXNewExpr()
9545 FunctionDecl *OperatorDelete = nullptr; in TransformCXXDeleteExpr() local
9547 OperatorDelete = cast_or_null<FunctionDecl>( in TransformCXXDeleteExpr()
9550 if (!OperatorDelete) in TransformCXXDeleteExpr()
9556 OperatorDelete == E->getOperatorDelete()) { in TransformCXXDeleteExpr()
[all …]
DSemaDeclCXX.cpp5986 FunctionDecl *OperatorDelete = nullptr; in ShouldDeleteSpecialMember() local
5990 OperatorDelete, false)) { in ShouldDeleteSpecialMember()
6929 FunctionDecl *OperatorDelete = nullptr; in CheckDestructor() local
6932 if (FindDeallocationFunction(Loc, RD, Name, OperatorDelete)) in CheckDestructor()
6936 if (!OperatorDelete) in CheckDestructor()
6937 OperatorDelete = FindUsualDeallocationFunction(Loc, true, Name); in CheckDestructor()
6939 MarkFunctionReferenced(Loc, OperatorDelete); in CheckDestructor()
6941 Destructor->setOperatorDelete(OperatorDelete); in CheckDestructor()
/external/llvm-project/clang/include/clang/AST/
DExprCXX.h2140 FunctionDecl *OperatorDelete; variable
2195 FunctionDecl *OperatorDelete, bool ShouldPassAlignment,
2210 FunctionDecl *OperatorDelete, bool ShouldPassAlignment,
2249 FunctionDecl *getOperatorDelete() const { return OperatorDelete; } in getOperatorDelete()
2250 void setOperatorDelete(FunctionDecl *D) { OperatorDelete = D; } in setOperatorDelete()
2392 FunctionDecl *OperatorDelete = nullptr; variable
2400 FunctionDecl *OperatorDelete, Expr *Arg, SourceLocation Loc) in CXXDeleteExpr() argument
2402 OperatorDelete(OperatorDelete), Argument(Arg) { in CXXDeleteExpr()
2427 FunctionDecl *getOperatorDelete() const { return OperatorDelete; } in getOperatorDelete()
DDeclCXX.h2651 FunctionDecl *OperatorDelete = nullptr; variable
2680 return getCanonicalDecl()->OperatorDelete; in getOperatorDelete()
/external/llvm-project/clang/lib/AST/
DExprCXX.cpp182 FunctionDecl *OperatorDelete, bool ShouldPassAlignment, 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()
DDeclCXX.cpp2754 if (OD && !First->OperatorDelete) { in setOperatorDelete()
2755 First->OperatorDelete = OD; in setOperatorDelete()
DExprConstant.cpp14403 FunctionDecl *OperatorDelete = E->getOperatorDelete(); in VisitCXXDeleteExpr() local
14404 if (!OperatorDelete->isReplaceableGlobalAllocationFunction()) { in VisitCXXDeleteExpr()
14406 << isa<CXXMethodDecl>(OperatorDelete) << OperatorDelete; in VisitCXXDeleteExpr()
/external/clang/include/clang/AST/
DExprCXX.h1812 FunctionDecl *OperatorDelete; variable
1891 FunctionDecl *getOperatorDelete() const { return OperatorDelete; } in getOperatorDelete()
1892 void setOperatorDelete(FunctionDecl *D) { OperatorDelete = D; } in setOperatorDelete()
2010 FunctionDecl *OperatorDelete; variable
2033 OperatorDelete(operatorDelete), Argument(arg), Loc(loc), in CXXDeleteExpr()
2038 : Expr(CXXDeleteExprClass, Shell), OperatorDelete(nullptr), in CXXDeleteExpr()
2053 FunctionDecl *getOperatorDelete() const { return OperatorDelete; } in getOperatorDelete()
DDeclCXX.h2417 FunctionDecl *OperatorDelete; variable
2425 OperatorDelete(nullptr) { in CXXDestructorDecl()
2440 return cast<CXXDestructorDecl>(getFirstDecl())->OperatorDelete; in getOperatorDelete()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp1799 if (auto *OperatorDelete = ReadDeclAs<FunctionDecl>(Record, Idx)) { in VisitCXXDestructorDecl() local
1802 if (!Canon->OperatorDelete) in VisitCXXDestructorDecl()
1803 Canon->OperatorDelete = OperatorDelete; in VisitCXXDestructorDecl()
3865 if (!First->OperatorDelete) in UpdateDecl()
3866 First->OperatorDelete = Del; in UpdateDecl()
DASTReaderStmt.cpp1430 E->OperatorDelete = ReadDeclAs<FunctionDecl>(Record, Idx); in VisitCXXDeleteExpr()
/external/llvm-project/clang/lib/Serialization/
DASTReaderDecl.cpp1995 if (auto *OperatorDelete = readDeclAs<FunctionDecl>()) { in VisitCXXDestructorDecl() local
1999 if (!Canon->OperatorDelete) { in VisitCXXDestructorDecl()
2000 Canon->OperatorDelete = OperatorDelete; in VisitCXXDestructorDecl()
4612 if (!First->OperatorDelete) { in UpdateDecl()
4613 First->OperatorDelete = Del; in UpdateDecl()
DASTReaderStmt.cpp1898 E->OperatorDelete = readDeclAs<FunctionDecl>(); in VisitCXXDeleteExpr()
/external/clang/lib/AST/
DDeclCXX.cpp1975 if (OD && !First->OperatorDelete) { in setOperatorDelete()
1976 First->OperatorDelete = OD; in setOperatorDelete()
DExprCXX.cpp76 SubExprs(nullptr), OperatorNew(operatorNew), OperatorDelete(operatorDelete), in CXXNewExpr()

12