13
0

add an untested, but likely usable clang-format configuration file (from matthias buhr)

This commit is contained in:
Paul Davis 2016-03-08 08:38:45 -05:00
parent 48c70b60d8
commit 5c0f11970c

25
tools/clang-format Normal file
View File

@ -0,0 +1,25 @@
---
Language: Cpp
AlignAfterOpenBracket: 'true'
AlignTrailingComments: 'true'
AlwaysBreakTemplateDeclarations: 'true'
AllowShortBlocksOnASingleLine: 'false'
AllowShortCaseLabelsOnASingleLine: 'false'
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: 'false'
AllowShortLoopsOnASingleLine: 'false'
AlwaysBreakAfterDefinitionReturnType: 'true'
BasedOnStyle: LLVM
BreakBeforeBraces: 'Linux'
BreakConstructorInitializersBeforeComma: 'true'
ColumnLimit: '100'
ConstructorInitializerAllOnOneLineOrOnePerLine: 'true'
IndentCaseLabels: 'false'
NamespaceIndentation: 'None'
PenaltyReturnTypeOnItsOwnLine: '1'
PointerAlignment: Left
SpaceBeforeParens: Always
TabWidth: '2'
UseTab: ForIndentation