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:
20
20
sudo apt-get install -y cmake libgtest-dev clang-tidy
21
21
22
22
- name : Configure CMake
23
- run : cmake -S . -B build
23
+ run : cmake -S . -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
24
24
25
25
- name : Run clang-tidy
26
26
run : |
27
27
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=*
29
29
30
30
- name : Build
31
31
run : cmake --build build
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ project ("datastructures-algorithms")
4
4
5
5
set (CMAKE_CXX_STANDARD 14 )
6
6
set (CMAKE_CXX_STANDARD_REQUIRED ON )
7
+ set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
7
8
8
9
9
10
# .clang-tidy settp
You can’t perform that action at this time.
0 commit comments