[clang] [RFC] Initial implementation of P2719 (PR #113510)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 6 01:38:33 PST 2024
================
@@ -4778,6 +4784,16 @@ class Sema final : public SemaBase {
CXXRecordDecl *getStdBadAlloc() const;
EnumDecl *getStdAlignValT() const;
+ const ClassTemplateDecl *getStdTypeIdentity() const;
+ ClassTemplateDecl *getStdTypeIdentity();
+ std::optional<QualType> instantiateSpecializedTypeIdentity(QualType Subject);
+ bool isTypeIdentitySpecialization(QualType Type) const;
+ bool isTypeAwareOperatorNewOrDelete(const FunctionDecl *FnDecl) const;
+ bool isTypeAwareOperatorNewOrDelete(const FunctionTemplateDecl *FnDecl) const;
+ bool isTypeAwareOperatorNewOrDelete(const NamedDecl *FnDecl) const;
----------------
cor3ntin wrote:
Do we really need 3 functions there, or can we just expose the `NamedDecl` one and dispatch inside of it?
https://github.com/llvm/llvm-project/pull/113510
More information about the cfe-commits
mailing list