Skip to content

Commit 6b83ef4

Browse files
committed
Provide path to config-file
1 parent 800b8bc commit 6b83ef4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,12 +242,12 @@ find_program(CLANG_AR_BIN clang-apply-replacements REQUIRED)
242242
find_program(RUN_CLANG_TIDY_BIN run-clang-tidy)
243243

244244
list(APPEND RUN_CLANG_TIDY_BIN_ARGS
245-
-clang-tidy-binary ${CLANG_TIDY_BIN}
246-
-clang-apply-replacements-binary ${CLANG_AR_BIN}
247-
-style=file
245+
--clang-tidy-binary ${CLANG_TIDY_BIN}
246+
--clang-apply-replacements-binary ${CLANG_AR_BIN}
247+
--config-file="${CMAKE_CURRENT_SOURCE_DIR}/.clang-tidy"
248248
# Limit clang-tidy to project headers
249-
-header-filter="${CMAKE_SOURCE_DIR}/*.h"
250-
-quiet
249+
--header-filter="${CMAKE_SOURCE_DIR}/*.h"
250+
--quiet
251251
)
252252

253253
# run clang-tidy linter only when compiling with clang (compiler flags may be

0 commit comments

Comments
 (0)