Skip to content

Commit

Permalink
Add clang-tidy
Browse files Browse the repository at this point in the history
This adds clang-tidy to CMake build, but the code needs some fixes first and a special config for test.
  • Loading branch information
wenzeslaus committed Apr 6, 2022
1 parent dfe55ef commit 44b3ce3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
# Useful for folders in some IDEs
set_property(GLOBAL PROPERTY USE_FOLDERS ON)

set(CMAKE_CXX_CLANG_TIDY
clang-tidy;
-header-filter=include/pops/*.hpp;
-checks=*;
-warnings-as-errors=*;)

# Enables testing for subdirectories and adds target test
include(CTest)

Expand Down

0 comments on commit 44b3ce3

Please sign in to comment.