Commit 30d97369f2694212cae5e41a6a06c8c0ddc4ced3
1 parent
fbd79df6
Fixes #341. Add a clang-format file
Showing
1 changed file
with
19 additions
and
0 deletions
.clang-format
0 → 100644
| 1 | +--- | ||
| 2 | +Language: Cpp | ||
| 3 | +BasedOnStyle: LLVM | ||
| 4 | +AccessModifierOffset: 0 | ||
| 5 | +AlignConsecutiveAssignments: true | ||
| 6 | +AlwaysBreakAfterReturnType: TopLevel | ||
| 7 | +BreakBeforeBraces: Custom | ||
| 8 | +BraceWrapping: | ||
| 9 | + AfterEnum: true | ||
| 10 | + AfterClass: true | ||
| 11 | + AfterStruct: true | ||
| 12 | + AfterFunction: true | ||
| 13 | + AfterNamespace: true | ||
| 14 | + AfterControlStatement: Always | ||
| 15 | + BeforeElse: true | ||
| 16 | +ConstructorInitializerIndentWidth: 2 | ||
| 17 | +ContinuationIndentWidth: 2 | ||
| 18 | +PenaltyReturnTypeOnItsOwnLine: 200 | ||
| 19 | +PointerAlignment: Left |