Merge "Call clang-tidy with -fno-caret-diagnostics by default."
This commit is contained in:
commit
0d9868c9af
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue