Skip to content

style(FirmwareUpgrade): clang-format FirmwareImage and FirmwareUpgradeController#14532

Open
dakejahl wants to merge 1 commit into
mavlink:masterfrom
dakejahl:style/clang-format-firmware-upgrade
Open

style(FirmwareUpgrade): clang-format FirmwareImage and FirmwareUpgradeController#14532
dakejahl wants to merge 1 commit into
mavlink:masterfrom
dakejahl:style/clang-format-firmware-upgrade

Conversation

@dakejahl

Copy link
Copy Markdown
Collaborator

Summary

Apply clang-format (the repo's pinned 21.1.7 config) to FirmwareImage and FirmwareUpgradeController with no functional changes.

Problem

These files predate clang-format enforcement and are not .clang-format-compliant. Since the pre-commit/CI check formats whole files, any PR that touches them is forced to reformat the entire file, burying the real change under hundreds of lines of pointer-alignment, include-sorting, brace-style and comment-reflow churn. #14530 is the immediate case.

Solution

Reformat the files in isolation so the churn lands as a standalone, trivially-verifiable commit. The diff is pure formatting — identical include set, and code token-identical to master ignoring whitespace — and #14530 rebases on top to show a clean, formatting-free diff.

…eController

These files predate clang-format enforcement and were never reformatted,
so any change to them triggers a whole-file reformat that buries the real
diff. Reformat them in isolation (clang-format 21.1.7 with the repo's
.clang-format) with no functional changes, so follow-up work rebased on
top shows a clean, formatting-free diff.
@codecov

codecov Bot commented Jun 15, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 13.39286% with 194 lines in your changes missing coverage. Please review.
✅ Project coverage is 30.64%. Comparing base (f29efd3) to head (bd5d34f).
⚠️ Report is 86 commits behind head on master.

Files with missing lines Patch % Lines
.../Vehicle/VehicleSetup/FirmwareUpgradeController.cc 15.24% 90 Missing and 49 partials ⚠️
src/Vehicle/VehicleSetup/FirmwareImage.cc 0.00% 52 Missing ⚠️
...c/Vehicle/VehicleSetup/FirmwareUpgradeController.h 62.50% 3 Missing ⚠️

❌ Your patch check has failed because the patch coverage (13.39%) is below the target coverage (30.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #14532      +/-   ##
==========================================
+ Coverage   25.47%   30.64%   +5.17%     
==========================================
  Files         769      772       +3     
  Lines       65912    66810     +898     
  Branches    30495    30813     +318     
==========================================
+ Hits        16788    20474    +3686     
+ Misses      37285    32703    -4582     
- Partials    11839    13633    +1794     
Flag Coverage Δ
unittests 30.64% <13.39%> (+5.17%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/Vehicle/VehicleSetup/FirmwareImage.h 0.00% <ø> (ø)
...c/Vehicle/VehicleSetup/FirmwareUpgradeController.h 30.00% <62.50%> (+5.00%) ⬆️
src/Vehicle/VehicleSetup/FirmwareImage.cc 0.00% <0.00%> (ø)
.../Vehicle/VehicleSetup/FirmwareUpgradeController.cc 11.49% <15.24%> (+1.85%) ⬆️

... and 319 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e390b8d...bd5d34f. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

Copy link
Copy Markdown
Contributor

Build Results

Platform Status

Platform Status Details
Linux Passed View
Windows Passed View
MacOS Passed View
Android Passed View

All builds passed.

Pre-commit

Check Status Details
pre-commit Failed (non-blocking) View

Pre-commit hooks: 2 passed, 75 failed, 7 skipped.

Test Results

linux-coverage: 100 passed, 0 skipped
Total: 100 passed, 0 skipped

Code Coverage

Coverage: 65.1%

No baseline available for comparison

Artifact Sizes

Artifact Size
QGroundControl 219.04 MB
QGroundControl-aarch64 178.32 MB
QGroundControl-installer-AMD64 137.03 MB
QGroundControl-installer-AMD64-ARM64 79.94 MB
QGroundControl-installer-ARM64 108.43 MB
QGroundControl-linux 191.62 MB
QGroundControl-mac 191.62 MB
QGroundControl-windows 189.79 MB
QGroundControl-x86_64 174.21 MB
No baseline available for comparison

Updated: 2026-06-15 02:45:26 UTC • Commit: bd5d34f • Triggered by: Android

@dakejahl dakejahl requested a review from HTRamsey June 15, 2026 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant