File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,12 @@ jobs:
2020 sudo apt-get install -y cmake libgtest-dev clang-tidy
2121
2222 - name : Configure CMake
23- run : cmake -S . -B build
23+ run : cmake -S . -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
2424
2525 - name : Run clang-tidy
2626 run : |
2727 find SourceCodes Headers -name '*.cpp' -o -name '*.cc' -o -name '*.cxx' -o -name '*.h' | \
28- xargs clang-tidy -p build
28+ xargs clang-tidy -p build --warnings-as-errors=*
2929
3030 - name : Build
3131 run : cmake --build build
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ project ("datastructures-algorithms")
44
55set (CMAKE_CXX_STANDARD 14)
66set (CMAKE_CXX_STANDARD_REQUIRED ON )
7+ set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
78
89
910# .clang-tidy settp
You can’t perform that action at this time.
0 commit comments