Commit 2cf433b
[clang][Sema] Add -Wswitch-default warning option (llvm#73077)
Adds a warning, issued by the clang semantic analysis. The patch warns
on switch which don't have the default branch.
This is a counterpart of gcc's Wswitch-default.
Change-Id: Iba221a303560b88fd7e408a517cfba2d728b09311 parent 9f8bc08 commit 2cf433b
File tree
6 files changed
+5
-63
lines changed- clang
- docs
- include/clang/Basic
- lib/Sema
- test/Sema
6 files changed
+5
-63
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| 439 | + | |
| 440 | + | |
439 | 441 | | |
440 | 442 | | |
441 | 443 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
634 | 634 | | |
635 | 635 | | |
636 | 636 | | |
637 | | - | |
| 637 | + | |
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10085 | 10085 | | |
10086 | 10086 | | |
10087 | 10087 | | |
| 10088 | + | |
| 10089 | + | |
10088 | 10090 | | |
10089 | 10091 | | |
10090 | 10092 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1344 | 1344 | | |
1345 | 1345 | | |
1346 | 1346 | | |
1347 | | - | |
1348 | | - | |
1349 | 1347 | | |
1350 | | - | |
1351 | 1348 | | |
1352 | 1349 | | |
1353 | 1350 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | 1 | | |
6 | 2 | | |
7 | 3 | | |
| |||
0 commit comments