Skip to content

Commit b0d265d

Browse files
committed
update release note
1 parent 2928471 commit b0d265d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,8 @@ Improvements to Clang's diagnostics
404404
- Clang now emits a diagnostic in case `vector_size` or `ext_vector_type`
405405
attributes are used with a negative size (#GH165463).
406406

407-
- A new warning, -Wshadow-header, has been added to detect when a header file
408-
included via quotes (#include "...") is found in multiple distinct search
409-
directories.
407+
- A new warning ``-Wshadow-header`` has been added to detect when a header file
408+
included via quotes (#include "...") is found in multiple distinct search directories.
410409

411410
Improvements to Clang's time-trace
412411
----------------------------------

clang/test/Preprocessor/header-shadowing.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
// RUN: %clang_cc1 -fms-compatibility -Wshadow-header -Eonly %t/t.c -I %t -I %t/foo -I %t/foo/bar 2>&1 | FileCheck %s --check-prefix=SHADOWING-MS
2020

2121
// SHADOWING-MS: {{.*}} warning: multiple candidates for header 't3.h' found; directory '{{.*}}foo' chosen, ignoring '{{.*}}' and others [-Wshadow-header]
22+
// SHADOWING-MS: warning: Found foo/t3.h.
2223
// SHADOWING-MS-NOT: {{.*}} warning: multiple candidates for header 't3.h' found; directory '{{.*}}foo' chosen, ignoring '{{.*}}' and others [-Wshadow-header]
2324

2425
//--- main.c

0 commit comments

Comments
 (0)