fix(lint): .clang-format uses Zephyr's config verbatim, not tuned for this project #45
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#45
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Description
.clang-format(added underfeat(c-lint)) is Zephyr's own config file copied verbatim --IndentWidth: 8,UseTab: ForContinuationAndIndentation, Zephyr-specificForEachMacros/AttributeMacros/IncludeCategorieslists that don't apply to this project at all.This surfaced concretely while landing DMM (#44): the new
lint.ymlclang-formatjob (#39) failed on the newly-addedhal/registers/component/dmm.h/instance/dmm.h. Runningclang-format -iwith the current config produces badly mangled output -- switches to 8-space tabs, breaks apart the hand-aligned CMSIS-style bitfield comment tables every register header in this project relies on for readability (see the job log,lint-clang-format-7881508.log). This isn't just a one-off gap on DMM's files; it would do the same to every future register header (DSS Cache, EDMA, ePWM, ESM, and beyond) and to any futurehal/mss/hal/dssdriver code.Scope
.clang-formatto this project's actual established style: 4-space indent, no tabs, brace-on-its-own-line, unwrapped long doc comments (this project's headers rely on single-line TRM-cross-reference comments that shouldn't be reflowed), and drop the Zephyr-specific macro/include-category lists that don't apply hereclang-format --dry-runproduces reasonable (aligned, readable) output on a representative header, even if not byte-identical to the existing hand-tuned alignment in already-landed files (out of scope to reformat those retroactively, perlint.yml's existing changed-files-only design)Functional Impact
None -- lint-tooling config only, no product/driver code changes.
Regulatory Impact
None
QMS Impact
None
Risk Impact
No -- existing risk coverage sufficient.
Related Issues / PRs
Relates to #38, #11