Do not pass -flto dependent flags to clang-tidy. am: ff7cff7268
am: 9e7e09b77a
Change-Id: Ia26281d74e74cb4aa6f111e2273a012e9a266350
This commit is contained in:
@@ -22,11 +22,13 @@ import (
|
||||
// clang-tidy doesn't recognize every flag that clang does. This is unlikely to
|
||||
// be a complete list, but we can populate this with the ones we know to avoid
|
||||
// issues with clang-diagnostic-unused-command-line-argument.
|
||||
// b/111885396: -flto affected header include directory; -fsanitize needs -flto.
|
||||
// b/111885396: -flto affected header include directory;
|
||||
// -fsanitize and -fwhole-program-vtables need -flto.
|
||||
var ClangTidyUnknownCflags = sorted([]string{
|
||||
"-Wa,%",
|
||||
"-flto",
|
||||
"-fsanitize=%",
|
||||
"-fwhole-program-vtables",
|
||||
})
|
||||
|
||||
func init() {
|
||||
|
Reference in New Issue
Block a user