Add clang-tidy.sh to filter out troublesome flags.
* Some flags are accepted by clang but not clang-tidy. They could cause the diagnostic-unused-command-line-argument warning. Flag -flto messed up the -I flags. * Add clang-diagnostic-unused-command-line-argument to default clang-tidy checks. * Move CLANG_TIDY_UNKNOWN_CFLAGS to build/make/core/clang/tidy.mk. Bug: 111850071 Bug: 111885396 Test: build with WITH_TIDY=1 Change-Id: Iabeeb27715acf83ef6aafe3e77206b9a01a0d889
Loading
Please register or sign in to comment