Skip to content

Add clang-format validation and apply fixes#16

Closed
aurebidart wants to merge 15 commits into
mainfrom
clang_format_workflow
Closed

Add clang-format validation and apply fixes#16
aurebidart wants to merge 15 commits into
mainfrom
clang_format_workflow

Conversation

@aurebidart

@aurebidart aurebidart commented Jul 7, 2025

Copy link
Copy Markdown
Contributor
  • Added GitHub Actions workflow to validate clang-format
  • Applied clang-format-14 fixes to existing C++ code
  • Excluded mavlink and auto-generated files from validation

About

This pull request introduces automated code style enforcement for C++ files in the repository using clang-format. A GitHub Actions workflow has been added to validate code formatting on every pull request and push, ensuring consistency across contributions. The workflow uses clang-format-14 and is configured to exclude mavlink and other auto-generated files from validation to prevent unnecessary errors and format changes.

Additionally, all existing C++ source files have been formatted according to the project's clang-format configuration. This helps standardize the codebase and makes future diffs easier to review.

How Has This Been Tested?

  • Verified that the GitHub Actions workflow runs successfully on new pull requests and pushes.
  • Confirmed the workflow only checks relevant C++ files and ignores excluded directories (such as mavlink and auto-generated sources).
  • Manually reviewed the formatting changes to ensure no functional code was altered.
  • Ran existing unit and integration tests to ensure that formatting changes did not introduce any regressions or build issues.

jonyMarino and others added 15 commits May 22, 2025 17:13
Remove internal directory. Know it's called development

Resolve merge

corrections

Co-authored-by: aurebidart <aure.bidart@gmail.com>
Add requirements.txt file

sphinx rtd theme on requirements.txt file

Co-authored-by: aurebidart <aure.bidart@gmail.com>
Co-authored-by: UE2 <unrealempowerment@gmail.com>
Fix README reference in Sphinx index to correctly include project ove…
- Added GitHub Actions workflow to validate clang-format
- Applied clang-format-14 fixes to existing C++ code
- Excluded mavlink and auto-generated files from validation
@jonyMarino jonyMarino closed this Jul 14, 2025
@jonyMarino
jonyMarino deleted the clang_format_workflow branch July 14, 2025 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants