[clang] [clang][Basic] Add helper APIs to get language version codes from LangOptions (PR #163348)

via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 14 10:37:33 PDT 2025


================
@@ -184,6 +184,28 @@ class LangOptionsBase {
     HLSL_202y = 2029,
   };
 
+  /// C language version codes as defined by the standard.
+  enum CLangStd : uint32_t {
+    // FIXME: Use correct value for C2y.
+    C_2y = 202400,
----------------
yronglin wrote:

Agree, `C2y` seems more make sense.

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


More information about the cfe-commits mailing list