Skip to content

Commit db75177

Browse files
committed
Update github action for .clang-tidy
1 parent 2842e3a commit db75177

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/cpp-build-test-coverage.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,17 @@ jobs:
6565
# - Add `--warnings-as-errors=*` to exit code 1
6666
# -------------------------------------------------------
6767
- name: Run clang-tidy
68+
# run: |
69+
# echo "Running clang-tidy..."
70+
# clang-tidy \
71+
# -checks='clang-analyzer-*,modernize-*,performance-*,readability-*' \
72+
# -p build \
73+
# $(find ./src -name '*.cpp')
6874
run: |
69-
echo "Running clang-tidy..."
70-
clang-tidy \
71-
-checks='clang-analyzer-*,modernize-*,performance-*,readability-*' \
72-
-p build \
73-
$(find ./src -name '*.cpp')
75+
echo "Running clang-tidy using .clang-tidy options"
76+
clang-tidy \
77+
-p build \
78+
-header-filter='^src/.*' $(find src -name "*.cpp")
7479
7580
# -------------------------------------------------------
7681
# Step 3: Configure and build the project

0 commit comments

Comments
 (0)