-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
36 lines (35 loc) · 1023 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
35
36
# doc : https://clang.llvm.org/docs/ClangFormatStyleOptions.html
{
BasedOnStyle: LLVM,
IndentWidth: 2,
NamespaceIndentation: All,
IndentCaseLabels: true,
IndentAccessModifiers: false,
AccessModifierOffset: -2,
UseTab: Never,
KeepEmptyLinesAtTheStartOfBlocks: false,
IncludeBlocks: Regroup,
MaxEmptyLinesToKeep: 1,
ReflowComments: true,
SpacesInLineCommentPrefix: {
Minimum: 1,
Maximum: -1,
},
PackConstructorInitializers: NextLine,
ColumnLimit: 80,
AlignOperands: Align,
AllowShortCaseLabelsOnASingleLine: true,
AlwaysBreakTemplateDeclarations: Yes,
BinPackParameters: false,
BinPackArguments: false,
PointerAlignment: Left,
DerivePointerAlignment: false,
IndentPPDirectives: BeforeHash,
BreakBeforeBinaryOperators: NonAssignment,
Cpp11BracedListStyle: false,
SpaceBeforeCpp11BracedList: true,
IndentWrappedFunctionNames: true,
AlignArrayOfStructures: Left,
AlignConsecutiveAssignments: Consecutive,
AllowShortIfStatementsOnASingleLine: AllIfsAndElse,
}