Skip to content

Commit 27d4696

Browse files
committed
remove .modmap files from clang tidy compile commands
1 parent 415b761 commit 27d4696

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,13 @@ jobs:
230230
working-directory: ${{ env.GITHUB_WORKSPACE }}
231231
run: cmake . --preset ${{ matrix.preset }} -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On
232232

233+
- name: Remove `.modmap`s from compile commands
234+
run: |
235+
(Get-Content "out\build\${{ matrix.preset }}\compile_commands.json") `
236+
-replace "@CMakeFiles.+?\.modmap", "" `
237+
| Set-Content `
238+
-Path "out\build\${{ matrix.preset }}\compile_commands.json"
239+
233240
- name: Run clang-tidy
234241
working-directory: ${{ env.GITHUB_WORKSPACE }}
235242
run: |

0 commit comments

Comments
 (0)