Skip to content

Commit

Permalink
feat: add openknx default auto formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
traxanos committed Sep 4, 2023
1 parent 8283360 commit 5d6d184
Show file tree
Hide file tree
Showing 3 changed files with 168 additions and 131 deletions.
38 changes: 38 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#Generated from Visual Studio settings
---
BasedOnStyle: llvm
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: true
AfterControlStatement: true
AfterCaseLabel: true
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterStruct: true
AfterUnion: true
AfterExternBlock: true
BeforeCatch: true
BeforeElse: true
BeforeWhile: true
BeforeLambdaBody: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
IndentBraces: false
ColumnLimit: 0
IndentWidth: 4
NamespaceIndentation: All
TabWidth: 4
DerivePointerAlignment: true
IndentCaseLabels: true
AllowShortCaseLabelsOnASingleLine: true
AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: OnlyFirstIf
AllowShortLambdasOnASingleLine: All
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
UseTab: Never
IndentPPDirectives: BeforeHash
...
Loading

0 comments on commit 5d6d184

Please sign in to comment.