-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.clang-format
43 lines (41 loc) · 1.45 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
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Part of BlueTit Solver, licensed under Apache 2.0 with Commons Clause.
# Commercial use, including SaaS, requires a separate license, see /LICENSE.md
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BasedOnStyle: LLVM
AlignAfterOpenBracket: Align
AlignOperands: Align
AllowAllArgumentsOnNextLine: No
AlignConsecutiveShortCaseStatements:
Enabled: Yes
AllowAllConstructorInitializersOnNextLine: No
AllowAllParametersOfDeclarationOnNextLine: No
AllowShortCaseLabelsOnASingleLine: Yes
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
AllowShortLoopsOnASingleLine: Yes
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: No
BinPackParameters: No
BreakAfterAttributes: Leave
BreakBeforeTernaryOperators: No
BreakInheritanceList: AfterColon
CompactNamespaces: No
EmptyLineAfterAccessModifier: Always
EmptyLineBeforeAccessModifier: LogicalBlock
IncludeIsMainRegex: "__NEVER__"
IndentCaseLabels: Yes
IndentRequiresClause: Yes
KeepEmptyLinesAtTheStartOfBlocks: No
MaxEmptyLinesToKeep: 1
PenaltyReturnTypeOnItsOwnLine: 1000 # Never.
PointerAlignment: Left
QualifierAlignment: Left
ReflowComments: Yes
RequiresClausePosition: OwnLine
SpaceAfterCStyleCast: Yes # Needed for __VA_OPT__ to work.
SpaceAfterTemplateKeyword: No
SpaceBeforeParens: Custom
SpaceBeforeParensOptions:
AfterRequiresInClause: Yes
AfterRequiresInExpression: Yes