-
Notifications
You must be signed in to change notification settings - Fork 0
/
_clang-format
39 lines (38 loc) · 1.05 KB
/
_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
37
38
39
---
DisableFormat: false
Language: Cpp
BasedOnStyle: LLVM
AccessModifierOffset: -4
AlignAfterOpenBracket: AlwaysBreak
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLoopsOnASingleLine: true
AlwaysBreakTemplateDeclarations: Yes
AlwaysBreakBeforeMultilineStrings: true
BinPackArguments: true
BinPackParameters: false
AlignOperands: DontAlign
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBraces: WebKit
BreakConstructorInitializers: BeforeComma
ColumnLimit: 100
ConstructorInitializerIndentWidth: 2
ContinuationIndentWidth: 2
IncludeBlocks: Regroup
IndentWidth: 4
KeepEmptyLinesAtTheStartOfBlocks: false
# clang-format 14:
# PackConstructorInitializers: NextLine
# clang-format 13 version of the previous:
ConstructorInitializerAllOnOneLineOrOnePerLine: true
PointerAlignment: Left
# clang-format 14:
# SeparateDefinitionBlocks: Always
# clang-format 14:
# RemoveBracesLLVM: true
SpacesBeforeTrailingComments: 2
Standard: Latest
TabWidth: 4
...