Commit 56faefd
committed
[Clang] Silently ignore unknown warnings in
This allows the same file to be used on multiple Clang versions,
without generating output spam.
Also disable parsing of the suppressions file in the Driver, where
it's not needed. This was previously causing the diagnostics to be
emitted twice, as the file was being parsed twice.
I'll also note that if we do ever wish to emit non-fatal diagnostics
from parsing this file, it'll need more: the code deleted here emitted
warnings which were not possible for a user to disable, since the
suppression file is parsed _before_ the diagnostic state has been
setup.--warning-suppression-mappings.1 parent 517334b commit 56faefd
File tree
4 files changed
+11
-7
lines changed- clang
- lib/Basic
- test/Misc/Inputs
- tools/driver
- unittests/Basic
4 files changed
+11
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
555 | 553 | | |
556 | 554 | | |
557 | 555 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
322 | 325 | | |
323 | 326 | | |
324 | 327 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
257 | | - | |
| 256 | + | |
258 | 257 | | |
259 | 258 | | |
260 | 259 | | |
| |||
0 commit comments