Commit d6116b4
committed
[clang-tidy] Add
Prior to this change to enable additional clang diagnostics, one had to
specify extra arguments on either the command line, or in the config
file.
This meant invocations like `clang-tidy ... -- -Wall`, or `clang-tidy
--extra-arg=-Wall ...` as well as config files like the one below.
```
\# .clang-tidy
Checks: ...
ExtraArgs: ["-Wall"]
```
This patch merges this functionality with the commonly used checks
interface, so the invocation for enabling the `-Wall` flag will look
like `clang-tidy --checks="...,clang-additional-diagnostic-all" ...`.clang-additional-diagnostic-* checks that enable clang warnings1 parent 51cf252 commit d6116b4
1 file changed
+26
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
581 | 582 | | |
582 | 583 | | |
583 | 584 | | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
584 | 609 | | |
| 610 | + | |
585 | 611 | | |
586 | 612 | | |
587 | 613 | | |
| |||
0 commit comments