aboutsummaryrefslogtreecommitdiffstats
path: root/maketargets/tidy.mk
blob: 944a063780d1ea438158f1b7147e27bbdcceb3e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# The 'tidy' target

CHKS = cert-*,$\
	-clang-analyzer-security.insecureAPI.strcpy,$\
	-clang-analyzer-optin.performance.Padding,$\
	-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,$\
	cppcoreguidelines-prefer-member-initializer,$\
	hicpp-deprecated-headers,$\
	hicpp-multiway-paths-covered,$\
	hicpp-special-member-functions,$\
	hicpp-use-auto,$\
	hicpp-use-emplace,$\
	hicpp-use-equals-default,$\
	hicpp-use-equals-delete,$\
	hicpp-use-nullptr,$\
	performance-*,$\
	portability-*

TIDY = clang-tidy
TIDYFLAGS = -checks=$(CHKS) -quiet
FICS_CLANG_TIDYFLAGS ?=

tidy: $(INCLUDE_DIR)ficspaths.h
	$(TIDY) $(SRCS) $(TIDYFLAGS) $(FICS_CLANG_TIDYFLAGS) -- \
	-I $(INCLUDE_DIR) $(CPPFLAGS)