Add .clang-format file.

This commit is contained in:
Arnaud Cornet 2018-11-18 08:19:26 -05:00 committed by Pierre-Louis Bonicoli
parent fabaec9d80
commit a80e74bbdc
Signed by: pilou
GPG Key ID: ADC2651DDACD3538
1 changed files with 21 additions and 0 deletions

21
.clang-format Normal file
View File

@ -0,0 +1,21 @@
---
BasedOnStyle: LLVM
Language: Cpp
IndentWidth: 8
UseTab: Always
BreakBeforeBraces: Linux
AlwaysBreakBeforeMultilineStrings: true
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AllowShortFunctionsOnASingleLine: false
IndentCaseLabels: false
AlignEscapedNewlinesLeft: false
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: false
AlignAfterOpenBracket: true
SpaceAfterCStyleCast: false
MaxEmptyLinesToKeep: 2
BreakBeforeBinaryOperators: NonAssignment
BreakStringLiterals: false
SortIncludes: false
ContinuationIndentWidth: 8