added clang-format config
This commit is contained in:
parent
c7715ce2a8
commit
e95a7fca60
35
clang/clang-format
Normal file
35
clang/clang-format
Normal file
@ -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
|
||||
|
4
clang/install.sh
Executable file
4
clang/install.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
ln -svrf clang-format ~/.clang-format
|
||||
|
Reference in New Issue
Block a user