Add doc/clang-format

This commit is contained in:
pancake 2014-12-17 00:18:44 +01:00
parent 6b2761f653
commit 38d0b8bfd3

19
doc/clang-format Normal file
View file

@ -0,0 +1,19 @@
Language: Cpp
MaxEmptyLinesToKeep: 1
SpaceBeforeParens: Always
SpaceInEmptyParentheses: false
BasedOnStyle: LLVM
ContinuationIndentWidth: 8
IndentCaseLabels: false
IndentFunctionDeclarationAfterType: false
IndentWidth: 8
UseTab: Always
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false
ColumnLimit: 78
BreakBeforeBraces: Attach
BreakBeforeTernaryOperators: false
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: Inline
# This requires LLVM > 3.5
AllowShortBlocksOnASingleLine: true