Merge "Call clang-tidy with -fno-caret-diagnostics by default." am: 0d9868c9af

am: dc15e3487e

Change-Id: I4846d6b39f4b4751ad827606eb85670a6dd9ab44
This commit is contained in:
Chih-hung Hsieh 2018-01-04 19:13:34 +00:00 committed by android-build-merger
commit 858b306a2b

View file

@ -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.