You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[HLSL] Align language modes on 202x as default (#108662)
As captured in issue #108044, HLSL 202x is the target language mode for
conformance for Clang. Earlier language modes will be a best effort and
prioritized after 2020x. To make this easier and reduce our testing
complexity we want to make 202x the default language mode now, and align
all earlier modes to match 202x (except where we explicitly deviate).
This change has the following concrete changes:
* All older language modes gain `CPlusPlus11` as a base
* The default language mode for HLSL sources is changed to 202x
* A few test cases are updated to resolve differences in generated
diagnostics.
Second to last change for #108044
Copy file name to clipboardExpand all lines: clang/test/SemaHLSL/Types/Arithmetic/literal_suffixes_202x.hlsl
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ _Static_assert(is_same<__decltype(4294967296), int64_t>::value, "4294967296 is i
37
37
// Clang emits a warning that it is interpreting it as unsigned because that is
38
38
// not conforming to the C standard.
39
39
40
-
// expected-warning@+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}}
40
+
// expected-warning@+1{{integer literal is too large to be represented in a signed integer type, interpreting as unsigned}}
41
41
staticconst uint64_t V = 9223372036854775808;
42
42
43
43
_Static_assert(is_same<__decltype(0x0), int>::value, "0x0 is int");
0 commit comments