mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[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:
@@ -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/).)*$'
|
||||||
|
|||||||
4
.github/workflows/lint-format.yml
vendored
4
.github/workflows/lint-format.yml
vendored
@@ -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
|
||||||
|
|||||||
@@ -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/).)*$'
|
||||||
|
|||||||
@@ -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/).)*$'
|
||||||
|
|||||||
Reference in New Issue
Block a user