[clang] [RFC] Initial implementation of P2719 (PR #113510)

via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 6 01:38:34 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);
----------------
cor3ntin wrote:

QualType already has an invalid state, why do we need the optional?

https://github.com/llvm/llvm-project/pull/113510


More information about the cfe-commits mailing list