[clang] [HLSL] Align language modes on 202x as default (PR #108662)
Greg Roth via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 16 14:13:21 PDT 2024
================
@@ -37,7 +37,7 @@ _Static_assert(is_same<__decltype(4294967296), int64_t>::value, "4294967296 is i
// Clang emits a warning that it is interpreting it as unsigned because that is
// not conforming to the C standard.
-// expected-warning at +1{{integer literal is too large to be represented in type 'long' and is subject to undefined behavior under C++98, interpreting as 'unsigned long'; this literal will be ill-formed in C++11 onwards}}
+// expected-warning at +1{{integer literal is too large to be represented in a signed integer type, interpreting as unsigned}}
----------------
pow2clk wrote:
It's all good now, but even though the filename suggests it's relevant to 202x, it wasn't targeting that before. Perhaps that contributed to the need for this change
https://github.com/llvm/llvm-project/pull/108662
More information about the cfe-commits
mailing list