clang-tidy CI: skip generated files under build/ in path filter

The run-clang-tidy path regex matched generated moc/qrc files under build/
that are listed in compile_commands.json but not produced when the project is
only configured, not built. Exclude /build/ paths to remove the spurious
clang-diagnostic-error output.
This commit is contained in:
Magne Sjaastad committed 2026-06-24 11:20:48 +02:00
1 parent dc7dc2f7db
commit 57e01e1be4
1 file changed
+4 -2
+4 -2
View File
@@ -65,8 +65,10 @@ jobs:
continue-on-error: true
run: |
cd build
run-clang-tidy-19 -config-file ../ApplicationLibCode/.clang-tidy -fix files ApplicationLibCode
run-clang-tidy-19 -config-file ../GrpcInterface/.clang-tidy -fix files GrpcInterface
# The path regex excludes generated files (moc/qrc) under build/, which are listed in
# compile_commands.json but not produced when the project is only configured, not built.
run-clang-tidy-19 -config-file ../ApplicationLibCode/.clang-tidy -fix '^(?!.*/build/).*(files|ApplicationLibCode)'
run-clang-tidy-19 -config-file ../GrpcInterface/.clang-tidy -fix '^(?!.*/build/).*(files|GrpcInterface)'
- name: Run clang-format after clang-tidy
continue-on-error: true
run: |