-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.clang-format
61 lines (60 loc) · 1.66 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
BasedOnStyle: LLVM
AlignAfterOpenBracket: AlwaysBreak
AlignConsecutiveAssignments: AcrossComments
AlignConsecutiveBitFields: AcrossComments
AlignConsecutiveMacros: AcrossComments
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: Empty
AllowShortLambdasOnASingleLine: Empty
AlwaysBreakAfterReturnType: None
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: false
BinPackParameters: false
BreakAfterAttributes: Always
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: true
AfterClass: true
AfterControlStatement: Always
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterStruct: true
AfterUnion: true
AfterExternBlock: true
BeforeLambdaBody: true
BeforeWhile: true
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeConceptDeclarations: Always
ColumnLimit: 100
ContinuationIndentWidth: 2
DerivePointerAlignment: false
EmptyLineBeforeAccessModifier: LogicalBlock
IncludeBlocks: Preserve
InsertBraces: true
IncludeCategories:
- Regex: '<[[:alnum:].]+>'
Priority: 1
- Regex: '^((<|")(gtest|gmock|isl|json)/)'
Priority: 2
- Regex: '.*'
Priority: 3
IndentPPDirectives: AfterHash
IndentWidth: 2
InsertTrailingCommas: Wrapped
KeepEmptyLinesAtTheStartOfBlocks: true
LambdaBodyIndentation: Signature
LineEnding: DeriveLF
NamespaceIndentation: All
PackConstructorInitializers: NextLine
PenaltyReturnTypeOnItsOwnLine: 100000000
PointerAlignment: Left
ReferenceAlignment: Left
RequiresClausePosition: OwnLine
SeparateDefinitionBlocks: Always
---