added clang-format config
parent
c7715ce2a8
commit
e95a7fca60
|
@ -0,0 +1,35 @@
|
|||
Language: Cpp
|
||||
IndentWidth: 4
|
||||
AccessModifierOffset: -4
|
||||
ColumnLimit: 80
|
||||
UseTab: ForContinuationAndIndentation
|
||||
TabWidth: 4
|
||||
|
||||
SortIncludes: false
|
||||
|
||||
AlignAfterOpenBracket: DontAlign
|
||||
|
||||
BreakBeforeBinaryOperators: NonAssignment
|
||||
|
||||
BreakBeforeBraces: Custom
|
||||
BraceWrapping:
|
||||
AfterClass: true
|
||||
AfterStruct: true
|
||||
AfterFunction: true
|
||||
AfterNamespace: false
|
||||
AfterControlStatement: true
|
||||
BeforeElse: true
|
||||
BeforeCatch: true
|
||||
|
||||
MaxEmptyLinesToKeep: 1
|
||||
Standard: Auto
|
||||
|
||||
IndentCaseLabels: true
|
||||
|
||||
BinPackArguments: true
|
||||
BinPackParameters: true
|
||||
|
||||
AllowShortFunctionsOnASingleLine: false
|
||||
|
||||
NamespaceIndentation: Inner
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
ln -svrf clang-format ~/.clang-format
|
||||
|
Loading…
Reference in New Issue