Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e7e09b7 authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh Committed by android-build-merger
Browse files

Do not pass -flto dependent flags to clang-tidy.

am: ff7cff72

Change-Id: I0da058960c67b69ecf2df63e5f2b385b82eea80e
parents 167d8c77 ff7cff72
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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() {