Skip to content

Commit dc3c352

Browse files
committed
core: fix to pass compile_commands.json
1 parent f761ba6 commit dc3c352

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/dsa-ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ project ("datastructures-algorithms")
44

55
set(CMAKE_CXX_STANDARD 14)
66
set(CMAKE_CXX_STANDARD_REQUIRED ON)
7+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
78

89

910
# .clang-tidy settp

0 commit comments

Comments
 (0)