Merge "Call clang-tidy with -quiet unless WITH_TIDY is set."
This commit is contained in:
@@ -77,6 +77,11 @@ func (tidy *tidyFeature) flags(ctx ModuleContext, flags Flags) Flags {
|
||||
flags.TidyFlags = append(flags.TidyFlags, headerFilter)
|
||||
}
|
||||
|
||||
// If clang-tidy is not enabled globally, add the -quiet flag.
|
||||
if !ctx.Config().ClangTidy() {
|
||||
flags.TidyFlags = append(flags.TidyFlags, "-quiet")
|
||||
}
|
||||
|
||||
// We might be using the static analyzer through clang tidy.
|
||||
// https://bugs.llvm.org/show_bug.cgi?id=32914
|
||||
flags.TidyFlags = append(flags.TidyFlags, "-extra-arg-before=-D__clang_analyzer__")
|
||||
|
Reference in New Issue
Block a user