Skip to content

Commit 87247a3

Browse files
committed
Edit release notes
1 parent e9e4634 commit 87247a3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,9 @@ Improvements to Clang's diagnostics
352352
- Now correctly diagnose a tentative definition of an array with static
353353
storage duration in pedantic mode in C. (#GH50661)
354354

355+
- Split diagnosis of implicit integer comparison on negation to a new diagnostic group ``-Wimplicit-int-comparison-on-negation``,
356+
so user can turn it off independently.
357+
355358
Improvements to Clang's time-trace
356359
----------------------------------
357360

clang/test/Sema/implicit-int-conversion-on-int.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ unsigned char test_no_diag(unsigned char x) {
99
unsigned char test_diag(unsigned char x) {
1010
return -x; // expected-warning {{implicit conversion loses integer precision: 'int' to 'unsigned char' on negation}}
1111
}
12-
#endif
12+
#endif

0 commit comments

Comments
 (0)