File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ Checks: >
33
44WarningsAsErrors : ' *'
55
6- HeaderFilterRegex : (^|.*/)( include/.*|source/.*)
6+ HeaderFilterRegex : ' ( include/.*|source/.*)'
77
88CheckOptions :
99 # Private member variables
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
1010find_program (CLANG_TIDY_EXE NAMES "clang-tidy" )
1111if (CLANG_TIDY_EXE)
1212 message (STATUS "clang-tidy found: ${CLANG_TIDY_EXE} " )
13- set (CMAKE_CXX_CLANG_TIDY
13+ set (CLANG_TIDY_COMMAND
1414 "${CLANG_TIDY_EXE} "
1515 "--config-file=${CMAKE_SOURCE_DIR} /.clang-tidy"
1616 "--extra-arg-before=-Wno-unknown-warning-option"
Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ target_link_libraries(
2626 0001BASICS
2727)
2828
29+ if (CLANG_TIDY_EXE)
30+ set_target_properties (0001BASICS PROPERTIES CXX_CLANG_TIDY "${CLANG_TIDY_COMMAND} " )
31+ endif ()
2932
3033include (GoogleTest)
3134gtest_discover_tests(0001-Basics-Tests DISCOVERY_TIMEOUT 30)
You can’t perform that action at this time.
0 commit comments