Skip to content

Commit aabea7c

Browse files
committed
Use digit separators in the diagnostic
1 parent 19e851e commit aabea7c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

clang/include/clang/Basic/DiagnosticLexKinds.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def err_unterminated___pragma : Error<"missing terminating ')' character">;
9191
def err_conflict_marker : Error<"version control conflict marker in file">;
9292

9393
def err_counter_overflow : Error<
94-
"'__COUNTER__' value cannot exceed 2147483647">;
94+
"'__COUNTER__' value cannot exceed 2'147'483'647">;
9595
def ext_counter : Extension<
9696
"'__COUNTER__' is a C2y extension">, InGroup<C2y>;
9797
def warn_counter : Warning<

clang/test/C/C2y/n3457_1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ static_assert(__COUNTER__ == 2147483646); // Test and increment
1616
static_assert(__COUNTER__ == 2147483647); // Test and increment
1717

1818
// This one should fail.
19-
signed long i = __COUNTER__; // expected-error {{'__COUNTER__' value cannot exceed 2147483647}}
19+
signed long i = __COUNTER__; // expected-error {{'__COUNTER__' value cannot exceed 2'147'483'647}}
2020

clang/test/C/C2y/n3457_2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
// the value too large is fine. Expanding to a too-large value is not.
77
#ifdef EXPAND_IT
88
// This one should fail.
9-
signed long i = __COUNTER__; // expected-error {{'__COUNTER__' value cannot exceed 2147483647}}
9+
signed long i = __COUNTER__; // expected-error {{'__COUNTER__' value cannot exceed 2'147'483'647}}
1010
#endif

0 commit comments

Comments
 (0)