[clang] [C++26][clang] Implement P2795R5 'Erroneous behaviour for uninitialized reads' (PR #177614)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 23 09:12:30 PST 2026


================
@@ -350,6 +353,10 @@ class CXX11<string namespace, string name, int version = 1>
     : Spelling<name, "CXX11", version> {
   string Namespace = namespace;
 }
+class CXX26<string namespace, string name, int version = 1>
+    : Spelling<name, "CXX26", version> {
----------------
erichkeane wrote:

SO we don't have this /ones like this because we typically expose attributes in ALL language versions as an extension, else writing headers/etc with them becomes really onerous.  IMO, I think this should just be a C++11 spelling, and we shouldn't do this.

Also, the CXX11 isn't the 'language version' so much as "the bracket spelling, while in C++", so adding a new version doesn't really make sense here either.


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


More information about the cfe-commits mailing list