mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-24 22:27:55 -05:00
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:
1 parent
dc7dc2f7db
commit
57e01e1be4
1 file changed
+4
-2
@@ -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: |
|
||||
|
||||
Reference in new issue
Block a user