[ci] Fix all warnings from clang-tidy 22 (#8680)

I ran the following locally:
```bash
gradle generateCompileCommands
./.github/workflows/fix_compile_commands.py build/TargetedCompileCommands/linuxx86-64release/compile_commands.json
wpiformat -default-branch 2027 -no-format -tidy-all -compile-commands=build/TargetedCompileCommands/linuxx86-64release
```

The `HeaderFilterRegex` option is used to filter out warnings from
thirdparty headers.
This commit is contained in:
Tyler Veness
2026-03-15 20:42:35 -07:00
committed by GitHub
parent e944ae9aca
commit 14e2c1c4cf
4 changed files with 8 additions and 2 deletions

View File

@@ -72,3 +72,4 @@ CheckOptions:
- key: modernize-use-using.IgnoreExternC - key: modernize-use-using.IgnoreExternC
value: 'true' value: 'true'
FormatStyle: file FormatStyle: file
HeaderFilterRegex: '^((?!thirdparty/).)*$'

View File

@@ -36,7 +36,7 @@ jobs:
- name: Install wpiformat - name: Install wpiformat
run: | run: |
python -m venv ${{ runner.temp }}/wpiformat python -m venv ${{ runner.temp }}/wpiformat
${{ runner.temp }}/wpiformat/bin/pip3 install wpiformat==2026.56 ${{ runner.temp }}/wpiformat/bin/pip3 install wpiformat==2026.57
- name: Run - name: Run
run: ${{ runner.temp }}/wpiformat/bin/wpiformat -default-branch 2027 run: ${{ runner.temp }}/wpiformat/bin/wpiformat -default-branch 2027
- name: Check output - name: Check output
@@ -78,7 +78,7 @@ jobs:
- name: Install wpiformat - name: Install wpiformat
run: | run: |
python -m venv ${{ runner.temp }}/wpiformat python -m venv ${{ runner.temp }}/wpiformat
${{ runner.temp }}/wpiformat/bin/pip3 install wpiformat==2026.56 ${{ runner.temp }}/wpiformat/bin/pip3 install wpiformat==2026.57
- name: Create compile_commands.json - name: Create compile_commands.json
run: | run: |
./gradlew generateCompileCommands -Ptoolchain-optional-roboRio ./gradlew generateCompileCommands -Ptoolchain-optional-roboRio

View File

@@ -71,3 +71,4 @@ FormatStyle: file
CheckOptions: CheckOptions:
- key: bugprone-dangling-handle - key: bugprone-dangling-handle
value: 'std::string_view' value: 'std::string_view'
HeaderFilterRegex: '^((?!thirdparty/).)*$'

View File

@@ -67,4 +67,8 @@ Checks:
modernize-use-override, modernize-use-override,
modernize-use-using, modernize-use-using,
readability-braces-around-statements' readability-braces-around-statements'
CheckOptions:
- key: modernize-use-using.IgnoreExternC
value: 'true'
FormatStyle: file FormatStyle: file
HeaderFilterRegex: '^((?!thirdparty/).)*$'