[clang] [C2y] Add octal prefixes, deprecate unprefixed octals (PR #131626)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 17 08:41:48 PDT 2025
================
@@ -256,6 +256,14 @@ def warn_cxx17_hex_literal : Warning<
"hexadecimal floating literals are incompatible with "
"C++ standards before C++17">,
InGroup<CXXPre17CompatPedantic>, DefaultIgnore;
+def ext_octal_literal : Extension<
+ "octal integer literals are a C2y extension">, InGroup<C2y>;
----------------
cor3ntin wrote:
I would rather we say it's a clang extension in C++ mode
https://github.com/llvm/llvm-project/pull/131626
More information about the cfe-commits
mailing list