lint: src/.clang-format

Move to top level so that

    clang-format -style=file

can find it regardless of current directory.
This commit is contained in:
Justin M. Keyes
2017-03-29 17:34:50 +02:00
parent 519224f6bd
commit 67305ffb5d

20
.clang-format Normal file
View File

@ -0,0 +1,20 @@
BasedOnStyle: Google
Language: Cpp
ColumnLimit: 80
IndentWidth: 2
TabWidth: 2
UseTab: Never
IndentCaseLabels: true
BreakBeforeBraces: Linux
AlignEscapedNewlinesLeft: false
AllowShortFunctionsOnASingleLine: false
AlignTrailingComments: true
SpacesBeforeTrailingComments: 2
PenaltyReturnTypeOnItsOwnLine: 200
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
BinPackParameters: false
BreakBeforeBinaryOperators: true
BreakBeforeTernaryOperators: true
ContinuationIndentWidth: 4