-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.clang-format
34 lines (33 loc) · 977 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
34
---
AlignAfterOpenBracket: AlwaysBreak
AllowAllParametersOfDeclarationOnNextLine: 'true'
AllowShortBlocksOnASingleLine: 'false'
AllowShortCaseLabelsOnASingleLine: 'true'
AllowShortFunctionsOnASingleLine: Inline
AlwaysBreakTemplateDeclarations: 'true'
AccessModifierOffset: -1
BinPackParameters: 'false'
BreakBeforeBinaryOperators: All
BreakBeforeInheritanceComma: 'true'
BreakBeforeTernaryOperators: 'true'
BreakConstructorInitializers: BeforeComma
ColumnLimit: '80'
CompactNamespaces: 'true'
ConstructorInitializerAllOnOneLineOrOnePerLine: 'true'
ConstructorInitializerIndentWidth: '4'
Cpp11BracedListStyle: 'true'
# IncludeBlocks: Preserve
SortIncludes: 'true'
SortUsingDeclarations: 'true'
IndentWidth: '2'
IndentCaseLabels: 'true'
Language: Cpp
MaxEmptyLinesToKeep: '1'
NamespaceIndentation: None
PenaltyReturnTypeOnItsOwnLine: '0'
PointerAlignment: Left
# SpaceBeforeCtorInitializerColon: 'true'
# SpaceBeforeInheritanceColon: 'true'
Standard: Cpp11
UseTab: Never
...