Add .clang-format.

This allows automatic source-file formatting with clang-format, freeing
contributors from worrying about formatting while keeping the style
consistent everywhere.
This commit is contained in:
Dejan Mircevski
2016-01-11 16:42:47 -05:00
parent e23c9849c2
commit 778b876587
3 changed files with 229 additions and 203 deletions

11
.clang-format Normal file
View File

@@ -0,0 +1,11 @@
Language: Cpp
IndentWidth: 4
BreakBeforeBraces: Custom
BraceWrapping: { AfterFunction: true }
IndentCaseLabels: false
ColumnLimit: 100
AccessModifierOffset: -4
AlignTrailingComments: true
AllowShortBlocksOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false