Skip to content

Commit

Permalink
format the code
Browse files Browse the repository at this point in the history
  • Loading branch information
microcai committed Sep 29, 2024
1 parent f4851e1 commit 02d8675
Show file tree
Hide file tree
Showing 2 changed files with 222 additions and 173 deletions.
53 changes: 53 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
Language: Cpp
BasedOnStyle: WebKit

Standard: Cpp11

ColumnLimit: '120'
UseTab: Always
TabWidth: '4'
IndentWidth: '4'
ContinuationIndentWidth: '4'


AllowAllArgumentsOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AlignAfterOpenBracket: DontAlign
AlignConsecutiveAssignments: true
AlignTrailingComments: true

AlwaysBreakTemplateDeclarations: true

BinPackArguments: false
BinPackParameters: true

BreakBeforeBinaryOperators: All
BreakConstructorInitializers: BeforeComma
BreakInheritanceList: BeforeComma
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: true
AfterClass: true
AfterControlStatement: true
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: true
AfterStruct: true
AfterUnion: true
BeforeCatch: true
BeforeElse: true
BeforeLambdaBody: true
IndentBraces: false

Cpp11BracedListStyle: false

IndentCaseLabels: 'true'

NamespaceIndentation: All

SpaceBeforeCpp11BracedList: 'false'

...
Loading

0 comments on commit 02d8675

Please sign in to comment.