fix(lint): retune .clang-format to this project's actual style #46
No reviewers
Labels
No labels
Category
App
Category
Documentation
Category
Firmware
Category
Hardware
Category
Qms
PR_Size
L
PR_Size
M
PR_Size
S
PR_Size
XL
PR_Size
XS
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Priority
Very Low Priority
Size
Epic
Size
Feature
Size
Task
Status
Blocked
Status
Draft
Status
Needs-review
Team
Board
Team
Dev
Team
Management
Type
Bug
Type
Capa
Type
Improvement
Type
New-feature
Type
Regulatory
Type
Usability
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
opendutchsolutions.public/hal_awr6843!46
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/46/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
.clang-format(added underfeat(c-lint)) turned out to be Zephyr's own config file copied verbatim --IndentWidth: 8,UseTab: ForContinuationAndIndentation, and Zephyr-specificForEachMacros/AttributeMacros/IncludeCategorieslists that don't apply to this project at all.Surfaced concretely while landing DMM (#44): the
lint.ymlclang-formatjob (#39) failed on the newly-addedhal/registers/component/dmm.h. Runningclang-format -iwith the existing config produced badly mangled output -- switched to 8-space tabs and broke apart the hand-aligned CMSIS-style bitfield comment tables every register header in this project relies on for readability.Retuned to this project's actual established conventions: 4-space indent, no tabs, brace-on-its-own-line (Allman), and
ColumnLimit: 0/ReflowComments: falsesince this project's register headers rely on long, single-line TRM-cross-reference doc comments that aren't meant to be wrapped. AddedAlignConsecutiveBitFields/AlignConsecutiveDeclarations/AlignTrailingCommentsso clang-format's own alignment stays close to (though not byte-identical to) this project's manually-tuned bitfield tables.Not byte-identical to already-landed headers (e.g.
adcbuf.h) -- retroactively reformatting those is out of scope, matchinglint.yml's existing changed-files-only design. Verified the tuned config produces clean, readable, internally-consistent alignment on a new header (hal/registers/component/dmm.h, from the still-open #44) instead of the tab/8-space mess the old config produced.Closes #45