Skip to content

Commit 98702e4

Browse files
committed
Add clang-tidy
This adds clang-tidy to CMake build, but the code needs some fixes first and a special config for test.
1 parent b183b27 commit 98702e4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
1818
# Useful for folders in some IDEs
1919
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
2020

21+
set(CMAKE_CXX_CLANG_TIDY
22+
clang-tidy;
23+
-header-filter=include/pops/*.hpp;
24+
-checks=*;
25+
-warnings-as-errors=*;)
26+
2127
# Enables testing for subdirectories and adds target test
2228
include(CTest)
2329

0 commit comments

Comments
 (0)