Skip to content

style(cpp): apply clang-format to native sources - #25

Merged
ReenigneArcher merged 1 commit into
masterfrom
codex/lint-c-cpp
Dec 4, 2026
Merged

ReenigneArcher merged 1 commit into
masterfrom
codex/lint-c-cpp

Conversation

@ReenigneArcher

@ReenigneArcher ReenigneArcher commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Description

Apply LizardByte’s ClangFormat settings to the C/C++ library, tools, and tests. Preserve the Windows SDK and WDF header order. Use the upstream Linux kernel settings in the VKMS-derived subtree so kernel backports keep their native style. Keep the generated EDID array reproducible and make source-contract assertions insensitive to formatter line wraps. Linux v7.2 format configuration

Screenshot

Issues Fixed or Closed

Roadmap Issues

Testing

  • Ran clang-format 23.1.0 --dry-run --Werror over all tracked C and C++ files with the same settings as Common Lint.
  • Built with GCC and Ninja in WSL and ran all 266 CTest cases successfully. The EDID generator check passed.
  • Verified that the branch merges cleanly with the Windows build fixes and the Python lint PR.
  • The C/C++ - Clang format (diff) step passed in the hosted workflow. Other language findings are covered by the sibling lint PRs. Common Lint run

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Tests have been added or updated for new or modified functionality, including regression tests for bug fixes

AI Usage

See our AI usage policy.

  • AI tools were used while preparing this PR

Codex (GPT-6) applied the C/C++ formatting and ran the validation above.

@sonarqubecloud

sonarqubecloud Bot commented Dec 4, 2026

Copy link
Copy Markdown

@ReenigneArcher
ReenigneArcher merged commit ecc6722 into master Dec 4, 2026
11 of 13 checks passed
@ReenigneArcher
ReenigneArcher deleted the codex/lint-c-cpp branch December 4, 2026 20:13
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.

1 participant