diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 85592804..20790125 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -26,7 +26,7 @@ jobs: steps: - uses: actions/checkout@v1 - name: Install dependencies - run: sudo apt-get install doxygen graphviz + run: sudo apt-get install doxygen graphviz clang-tidy - name: Configure run: | mkdir build && cd build && \ diff --git a/CMakeLists.txt b/CMakeLists.txt index d1652e49..5d9d7ccf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)