add .clang-format (#1)
This commit is contained in:
parent
5fa55b8199
commit
286ea6ca52
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
Language: Cpp
|
||||
BasedOnStyle: Google
|
||||
AccessModifierOffset: -4
|
||||
AllowShortFunctionsOnASingleLine: Inline
|
||||
ColumnLimit: 120
|
||||
ConstructorInitializerIndentWidth: 8 # double of IndentWidth
|
||||
ContinuationIndentWidth: 8 # double of IndentWidth
|
||||
DerivePointerAlignment: false # always use PointerAlignment
|
||||
IndentCaseLabels: false
|
||||
IndentWidth: 4
|
||||
PointerAlignment: Left
|
||||
ReflowComments: false
|
||||
SortUsingDeclarations: false
|
||||
SpacesBeforeTrailingComments: 1
|
||||
|
|
@ -52,3 +52,4 @@ be/tags
|
|||
.vscode
|
||||
.*
|
||||
!.gitignore
|
||||
!.clang-format
|
||||
|
|
|
|||
Loading…
Reference in New Issue