Clang formatting file for STYLE #150

Open
opened 2024-07-20 10:03:14 -06:00 by emma · 0 comments
Owner

unless someone else is interested in writing it, the .clang-format isn't going to happen. as far as i can tell, it's far too buggy to be even remotely useful. maybe it's a skill issue on my part, no clue. for future reference, here's what i've got:

Language: Cpp  # docs say to use Cpp for C as well
PointerAlignment: Left
ColumnLimit: 80
IndentWidth: 4
ContinuationIndentWidth: 4
UseTab: Always
LineEnding: LF
InsertBraces: true
BreakBeforeBraces: Attach
BreakBeforeBinaryOperators: All
AllowShortFunctionsOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
AlignOperands: Align
AlignAfterOpenBracket: BlockIndent
AllowAllArgumentsOnNextLine: false
IndentCaseLabels: true
IndentCaseBlocks: true
IndentGotoLabels: true
SpaceBeforeCaseColon: false
SpaceBeforeParens: ControlStatements
SpacesBeforeTrailingComments: 2
SpaceBeforeAssignmentOperators: true
InsertNewlineAtEOF: true

Originally posted by @silt in #140 (comment)

unless someone else is interested in writing it, the `.clang-format` isn't going to happen. as far as i can tell, it's far too buggy to be even remotely useful. maybe it's a skill issue on my part, no clue. for future reference, here's what i've got: ```yaml Language: Cpp # docs say to use Cpp for C as well PointerAlignment: Left ColumnLimit: 80 IndentWidth: 4 ContinuationIndentWidth: 4 UseTab: Always LineEnding: LF InsertBraces: true BreakBeforeBraces: Attach BreakBeforeBinaryOperators: All AllowShortFunctionsOnASingleLine: Empty AllowShortCaseLabelsOnASingleLine: false AllowShortIfStatementsOnASingleLine: true AllowShortLoopsOnASingleLine: true AlignOperands: Align AlignAfterOpenBracket: BlockIndent AllowAllArgumentsOnNextLine: false IndentCaseLabels: true IndentCaseBlocks: true IndentGotoLabels: true SpaceBeforeCaseColon: false SpaceBeforeParens: ControlStatements SpacesBeforeTrailingComments: 2 SpaceBeforeAssignmentOperators: true InsertNewlineAtEOF: true ``` _Originally posted by @silt in https://git.tebibyte.media/bonsai/harakit/issues/140#issuecomment-5387_
emma added the
enhancement
help wanted
labels 2024-07-20 10:03:23 -06:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: bonsai/harakit#150
No description provided.