================
@@ -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,
+ C_23 = 202311,
+ C_17 = 201710,
+ C_11 = 201112,
+ C_99 = 199901,
+ };
+
+ /// C++ language version codes as defined by the standard.
+ enum CPlusPlusLangStd : uint32_t {
+ // FIXME: Use correct value for C++26.
+ CPP_26 = 202400,
----------------
yronglin wrote:
How about use `CPlusPlus26` to keep the same style with the members in
`LangOpts`?
https://github.com/llvm/llvm-project/pull/163348
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits