-
Notifications
You must be signed in to change notification settings - Fork 167
/
.clang-format
33 lines (30 loc) · 954 Bytes
/
.clang-format
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# This style requires customized clang-format from https://github.com/cawka/clang
#
BasedOnStyle: GNU
---
Language: Cpp
AlwaysBreakAfterDefinitionReturnType: true
AlwaysBreakAfterDeclarationReturnType: true
ColumnLimit: 100
SpaceBeforeParens: ControlStatements
Cpp11BracedListStyle: true
BreakBeforeBraces: Stroustrup
PointerAlignment: Left
PenaltyReturnTypeOnItsOwnLine: 0
AllowShortBlocksOnASingleLine: false
# AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
BreakConstructorInitializersBeforeComma: true
NamespaceIndentation: None
Standard: Cpp11
AlwaysBreakTemplateDeclarations: true
IndentWidth: 2
PenaltyBreakBeforeFirstCallParameter: 500
SpacesBeforeTrailingComments: 1
UseTab: Never
ConstructorInitializerIndentWidth: 2
SpaceBetweenTemplateAndOpeningAngle: false
BreakBeforeBinaryOperators: NonAssignment
ContinuationIndentWidth: 2