diff options
author | Daniel Thompson <daniel.thompson@linaro.org> | 2022-05-11 16:36:35 +0100 |
---|---|---|
committer | Daniel Thompson <daniel.thompson@linaro.org> | 2022-05-11 16:37:14 +0100 |
commit | edda51db73a3fb8d6f5f579110da0305dcd21cdb (patch) | |
tree | a7cd63c64c5f8e9973d10475d75975b430ee6073 | |
parent | 1c3c00076bff4a7d48bba781fbb4dcf958bab9a7 (diff) | |
download | linux-misc/compile_commands_for_gcc.tar.gz |
Makefile: Enable clang-tidy and clang-analyzer for gcc buildsmisc/compile_commands_for_gcc
It is now possible use clang-tidy and clang-analyzer even if your primary
compiler is gcc. Remove the checks that prevent gcc builds from using
these tools.
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
-rw-r--r-- | Makefile | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -1892,17 +1892,11 @@ targets += $(extmod_prefix)compile_commands.json PHONY += clang-tidy clang-analyzer -ifdef CONFIG_CC_IS_CLANG quiet_cmd_clang_tools = CHECK $< cmd_clang_tools = $(PYTHON3) $(srctree)/scripts/clang-tools/run-clang-tools.py $@ $< clang-tidy clang-analyzer: $(extmod_prefix)compile_commands.json $(call cmd,clang_tools) -else -clang-tidy clang-analyzer: - @echo "$@ requires CC=clang" >&2 - @false -endif # Scripts to check various things for consistency # --------------------------------------------------------------------------- |