Call clang-tidy with -fno-caret-diagnostics by default.
* clang -fno-caret-diagnostics suppresses warning source lines, carets, and the stats line of "n warnings generated" * clang-tidy -extra-arg-before=-fno-caret-diagnotics only suppresses the "n warnings generated" line. * Pass this flag and -quiet to clang-tidy when WITH_TIDY is not 1 or true. Bug: 69051430 Test: normal build and build with WITH_TIDY=1 Change-Id: I34e34cddc0e7329e73b5f04da4b1458dabfcd4c8
This commit is contained in:
parent
7fdd2b788c
commit
669cb9150e
|
@ -80,6 +80,7 @@ func (tidy *tidyFeature) flags(ctx ModuleContext, flags Flags) Flags {
|
|||
// If clang-tidy is not enabled globally, add the -quiet flag.
|
||||
if !ctx.Config().ClangTidy() {
|
||||
flags.TidyFlags = append(flags.TidyFlags, "-quiet")
|
||||
flags.TidyFlags = append(flags.TidyFlags, "-extra-arg-before=-fno-caret-diagnostics")
|
||||
}
|
||||
|
||||
// We might be using the static analyzer through clang tidy.
|
||||
|
|
Loading…
Reference in New Issue