[clang] [Clang] Add flags and lang option for C++2d (PR #203992)

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 16 06:25:45 PDT 2026


================
@@ -191,6 +191,19 @@ LANGSTANDARD(gnucxx26, "gnu++2c",
              CPlusPlus20 | CPlusPlus23 | CPlusPlus26 | Digraphs | HexFloat | GNUMode, 202400)
 LANGSTANDARD_ALIAS(gnucxx26, "gnu++26")
 
+// FIXME: Use correct version code for C++29 once published.
+LANGSTANDARD(cxx29, "c++2d",
+             CXX, "Working draft for C++2d",
+             LineComment | CPlusPlus | CPlusPlus11 | CPlusPlus14 | CPlusPlus17 |
+             CPlusPlus20 | CPlusPlus23 | CPlusPlus26 | CPlusPlus29 | Digraphs | HexFloat, 202700)
+LANGSTANDARD_ALIAS(cxx29, "c++29")
----------------
Endilll wrote:

I remember Aaron regretting doing that for 26.

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


More information about the cfe-commits mailing list