aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-05-16 19:13:11 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-05-16 19:13:11 +0300
commit7ed0f9242c53fbf14ebb33d4eca9e111b2c9d5cf (patch)
tree4b0e74d5c7c05c5fc4a1348bd669fc4505742203 /Makefile
parentupdate cmake-common (diff)
downloadwinapi-utf8-7ed0f9242c53fbf14ebb33d4eca9e111b2c9d5cf.tar.gz
winapi-utf8-7ed0f9242c53fbf14ebb33d4eca9e111b2c9d5cf.zip
add .clang-tidy & `make check`
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2bda0a4..61f1cc1 100644
--- a/Makefile
+++ b/Makefile
@@ -82,3 +82,12 @@ install: build
.PHONY: test
test:
cd -- '$(call escape,$(cmake_dir))' && ctest -C '$(call escape,$(CONFIGURATION))' --verbose
+
+clang-tidy := run-clang-tidy
+ifeq (1,$(shell test -e /usr/share/clang/run-clang-tidy.py && echo 1))
+clang-tidy := /usr/share/clang/run-clang-tidy.py
+endif
+
+.PHONY: check
+check:
+ $(clang-tidy) -p '$(call escape,$(cmake_dir))' -quiet