added clang-format config

main
mandlm 2018-05-08 20:52:44 +02:00
parent c7715ce2a8
commit e95a7fca60
2 changed files with 39 additions and 0 deletions

35
clang/clang-format Normal file
View 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
View File

@ -0,0 +1,4 @@
#!/usr/bin/env sh
ln -svrf clang-format ~/.clang-format