Merge "Do not pass -flto and -fsanitize flags to clang-tidy."
am: 9f65ef8cd9
Change-Id: I7edbaaa8cccabe2b2952fa88499bdfbecfecf60a
This commit is contained in:
commit
167d8c77ba
1 changed files with 3 additions and 0 deletions
|
@ -22,8 +22,11 @@ import (
|
||||||
// clang-tidy doesn't recognize every flag that clang does. This is unlikely to
|
// 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
|
// be a complete list, but we can populate this with the ones we know to avoid
|
||||||
// issues with clang-diagnostic-unused-command-line-argument.
|
// issues with clang-diagnostic-unused-command-line-argument.
|
||||||
|
// b/111885396: -flto affected header include directory; -fsanitize needs -flto.
|
||||||
var ClangTidyUnknownCflags = sorted([]string{
|
var ClangTidyUnknownCflags = sorted([]string{
|
||||||
"-Wa,%",
|
"-Wa,%",
|
||||||
|
"-flto",
|
||||||
|
"-fsanitize=%",
|
||||||
})
|
})
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
Loading…
Reference in a new issue