Skip to content

Commit

Permalink
Update formatting configuration for vscode and Arduino IDE (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
fenfir authored Jan 28, 2025
1 parent 29fa442 commit 880d079
Show file tree
Hide file tree
Showing 3 changed files with 320 additions and 269 deletions.
3 changes: 2 additions & 1 deletion microcontroller-src/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"files.associations": {
"algorithm": "cpp"
}
},
"C_Cpp.clang_format_style": "file:.clang-format"
}
52 changes: 52 additions & 0 deletions microcontroller-src/kv4p_ht_esp32_wroom_32/.clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
BasedOnStyle: LLVM
AlignConsecutiveAssignments: Consecutive
AlignEscapedNewlines: DontAlign
AllowShortBlocksOnASingleLine: Always
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
AllowShortLambdasOnASingleLine: Empty
AllowShortLoopsOnASingleLine: true
AlwaysBreakTemplateDeclarations: No
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeConceptDeclarations: false
BreakStringLiterals: false
ColumnLimit: 0
CommentPragmas: ""
ConstructorInitializerIndentWidth: 2
ContinuationIndentWidth: 2
DerivePointerAlignment: true
EmptyLineAfterAccessModifier: Leave
EmptyLineBeforeAccessModifier: Leave
FixNamespaceComments: false
IncludeIsMainRegex: ""
IndentCaseBlocks: true
IndentCaseLabels: true
IndentExternBlock: Indent
IndentGotoLabels: false
IndentRequires: true
MaxEmptyLinesToKeep: 100000
PenaltyBreakAssignment: 1
PenaltyBreakBeforeFirstCallParameter: 1
PenaltyBreakComment: 1
PenaltyBreakFirstLessLess: 1
PenaltyBreakOpenParenthesis: 1
PenaltyBreakString: 1
PenaltyBreakTemplateDeclaration: 1
PenaltyExcessCharacter: 1
PenaltyIndentedWhitespace: 1
PenaltyReturnTypeOnItsOwnLine: 1
PointerAlignment: Left
ReflowComments: false
ShortNamespaceLines: 0
SortIncludes: Never
SortUsingDeclarations: false
SpaceAfterTemplateKeyword: false
SpacesBeforeTrailingComments: 2
SpacesInAngles: Leave
SpacesInContainerLiterals: false
SpacesInLineCommentPrefix:
Minimum: 0
Standard: Auto
TabWidth: 2
Loading

0 comments on commit 880d079

Please sign in to comment.