From 5f396a1f95d213aad1974b266302864f9d4759ac Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Fri, 21 Jun 2019 09:32:54 +0000 Subject: [PATCH] defs.mk:: Define variables empty, space and comma Move definitions of empty, space and comma from targets-tools.mk into defs.mk. Signed-off-by: Jan Lindemann --- make/defs.mk | 1 + make/targets-tools.mk | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/make/defs.mk b/make/defs.mk index 010885c8..f655cc20 100644 --- a/make/defs.mk +++ b/make/defs.mk @@ -9,6 +9,7 @@ MAKEFLAGS += -r empty := space := $(empty) $(empty) +comma := , include $(MODDIR)/make/projects.mk diff --git a/make/targets-tools.mk b/make/targets-tools.mk index f9c620af..e2ae5d40 100644 --- a/make/targets-tools.mk +++ b/make/targets-tools.mk @@ -70,9 +70,6 @@ CLANG_TIDY_EXTRA_ARGS += -cppcoreguidelines-pro-bounds-pointer-arithmetic CLANG_TIDY_EXTRA_ARGS += -cppcoreguidelines-pro-bounds-constant-array-index CLANG_TIDY_FILTER = $(SED) 's%\[\([a-z-]\+\)\]$$%[https://clang.llvm.org/extra/clang-tidy/checks/\1.html]%' -comma := , -empty := -space := $(empty) $(empty) CLANG_TIDY_CHECKS ?= -$(subst $(space),,*,clang-analyzer-*,-clang-analyzer-cplusplus*,modernize-*,portability-*,cppcoreguidelines-*$(addprefix $(comma),$(CLANG_TIDY_EXTRA_ARGS))) CLANG_TIDY ?= clang-tidy -checks=$(CLANG_TIDY_CHECKS)