Skip to content

Commit

Permalink
Makefile - fix checked clang-tidy directories
Browse files Browse the repository at this point in the history
  • Loading branch information
SiskaPavel committed Oct 3, 2024
1 parent 3417f0a commit 1da5265
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ ifeq ($(RUN_CLANG_TIDY),)
RUN_CLANG_TIDY := run-clang-tidy
endif

SOURCE_DIR = src/ include/
SRC_DIR = "$(shell pwd)/src"
INC_DIR = "$(shell pwd)/include"

HEADE_FILTER = "$(SRC_DIR)|$(INC_DIR)"
SOURCE_DIR = "$(SRC_DIR)" "$(INC_DIR)"
SOURCE_REGEX = '.*\.\(cpp\|hpp\)'

.PHONY: all
Expand All @@ -40,11 +44,11 @@ format-fix:

.PHONY: tidy
tidy: all
$(RUN_CLANG_TIDY) -p build -quiet -j $(shell nproc) $(SOURCE_DIR)
$(RUN_CLANG_TIDY) -p build -quiet -j $(shell nproc) -header-filter=$(HEADE_FILTER) $(SOURCE_DIR)

.PHONY: tidy-fix
tidy-fix: all
$(RUN_CLANG_TIDY) -p build -quiet -fix -j $(shell nproc) $(SOURCE_DIR)
$(RUN_CLANG_TIDY) -p build -quiet -fix -j $(shell nproc) -header-filter=$(HEADE_FILTER) $(SOURCE_DIR)

.PHONY: test
test: build
Expand Down

0 comments on commit 1da5265

Please sign in to comment.