File: clang-tidy.mk

package info (click to toggle)
manpages 6.15-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,184 kB
  • sloc: sh: 575; python: 222; perl: 190; makefile: 29; lisp: 22
file content (28 lines) | stat: -rw-r--r-- 734 bytes parent folder | download
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
26
27
28
# Copyright, the authors of the Linux man-pages project
# SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception


ifndef MAKEFILE_CONFIGURE_BUILD_DEPENDS_CLANG_TIDY_CLANG_TIDY_INCLUDED
MAKEFILE_CONFIGURE_BUILD_DEPENDS_CLANG_TIDY_CLANG_TIDY_INCLUDED := 1


include $(MAKEFILEDIR)/configure/directory_variables/src.mk


CLANG_TIDY_CONF         := $(SYSCONFDIR)/clang-tidy/config.yaml
DEFAULT_CLANG_TIDYFLAGS := \
	--config-file=$(CLANG_TIDY_CONF) \
	--quiet \
	--use-color
ifndef CLANG_TIDYFLAGS
CLANG_TIDYFLAGS         :=
endif
ifndef CLANG_TIDYFLAGS_
CLANG_TIDYFLAGS_        := $(DEFAULT_CLANG_TIDYFLAGS) $(CLANG_TIDYFLAGS)
endif
ifndef CLANG_TIDY
CLANG_TIDY              := clang-tidy
endif


endif  # include guard