aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cc/config/tidy.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cc/config/tidy.go b/cc/config/tidy.go
index 5d53a8cd..3d1a0a0a 100644
--- a/cc/config/tidy.go
+++ b/cc/config/tidy.go
@@ -22,8 +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 and -fwhole-program-vtables need -flto.
var ClangTidyUnknownCflags = sorted([]string{
"-Wa,%",
+ "-flto",
+ "-fsanitize=%",
+ "-fwhole-program-vtables",
})
func init() {