summaryrefslogtreecommitdiffstats
path: root/share/mk/configure/build-depends/clang-tidy.mk
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--share/mk/configure/build-depends/clang-tidy.mk22
1 files changed, 22 insertions, 0 deletions
diff --git a/share/mk/configure/build-depends/clang-tidy.mk b/share/mk/configure/build-depends/clang-tidy.mk
new file mode 100644
index 0000000..2d818f9
--- /dev/null
+++ b/share/mk/configure/build-depends/clang-tidy.mk
@@ -0,0 +1,22 @@
+# Copyright 2022-2024, Alejandro Colomar <alx@kernel.org>
+# SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception
+
+
+ifndef MAKEFILE_CONFIGURE_BUILD_DEPENDS_CLANG_TIDY_INCLUDED
+MAKEFILE_CONFIGURE_BUILD_DEPENDS_CLANG_TIDY_INCLUDED := 1
+
+
+include $(MAKEFILEDIR)/configure/src.mk
+
+
+CLANG_TIDY_CONF := $(SYSCONFDIR)/clang-tidy/config.yaml
+DEFAULT_CLANG_TIDYFLAGS := \
+ --config-file=$(CLANG_TIDY_CONF) \
+ --quiet \
+ --use-color
+EXTRA_CLANG_TIDYFLAGS :=
+CLANG_TIDYFLAGS := $(DEFAULT_CLANG_TIDYFLAGS) $(EXTRA_CLANG_TIDYFLAGS)
+CLANG_TIDY := clang-tidy
+
+
+endif # include guard