File tree 2 files changed +3
-6
lines changed
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,6 @@ CheckOptions:
55
55
- key : readability-identifier-naming.FunctionCase
56
56
value : lower_case
57
57
58
- WarningsAsErrors : ' '
59
- HeaderFilterRegex : ' src/|include/|tests/ '
58
+ WarningsAsErrors : ' * '
59
+ # HeaderFilterRegex: ''
60
60
FormatStyle : ' file'
Original file line number Diff line number Diff line change @@ -23,15 +23,12 @@ if(PROJECT_IS_TOP_LEVEL)
23
23
24
24
add_custom_target (
25
25
clang-tidy
26
- # COMMAND git ls-files | grep -E ".*\\.(c|h|cpp|hpp)$" | xargs clang-tidy -p=${CMAKE_CURRENT_BINARY_DIR} --extra-arg=-std=c++${CMAKE_CXX_STANDARD}
27
- COMMAND find ${CMAKE_SOURCE_DIR} /include -name *.hpp -exec clang-tidy --extra-arg=-std=c++${CMAKE_CXX_STANDARD} -p ${CMAKE_BINARY_DIR} {} \;
28
- # COMMAND find ${CMAKE_SOURCE_DIR}/tests -name '*.cpp' -exec clang-tidy -p ${CMAKE_BINARY_DIR} {}
26
+ COMMAND git ls-files | grep -E "^(include|src)/.*\. (c|cpp|h|hpp)$" | xargs clang-tidy --extra-arg=-std=c++${CMAKE_CXX_STANDARD} -p ${CMAKE_BINARY_DIR} --header-filter ='^$'
29
27
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
30
28
VERBATIM
31
29
USES_TERMINAL
32
30
)
33
31
34
-
35
32
add_custom_target (
36
33
clang-format
37
34
COMMAND git ls-files | grep -E ".*\\ .(c|h|cpp|hpp)$" | xargs clang-format -i
You can’t perform that action at this time.
0 commit comments