-
Notifications
You must be signed in to change notification settings - Fork 5
/
.clang-format
60 lines (60 loc) · 2.27 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
BasedOnStyle: Google
#AccessModifierOffset: -2
## AlignEscapedNewlinesLeft: true
AlignEscapedNewlines: DontAlign
AlignTrailingComments: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortFunctionsOnASingleLine: true
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
#AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: true
BinPackParameters: true
BreakBeforeBinaryOperators: false
# BreakBeforeBraces: Stroustrup
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
ColumnLimit: 90
#CommentPragmas: '^ IWYU pragma:'
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: false
DerivePointerBinding: false
DerivePointerAlignment: false
PointerAlignment: Right
ExperimentalAutoDetectBinPacking: false
IndentCaseLabels: true
IndentFunctionDeclarationAfterType: true
IndentWidth: 4
# It is broken on windows. Breaks all #include "header.h"
#Language: Cpp
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
#ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: false
PenaltyBreakBeforeFirstCallParameter: 1
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 200
PointerBindsToType: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatementsExceptForEachMacros
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
#SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
Standard: Cpp11
TabWidth: 4
UseTab: Never
AlignConsecutiveMacros: true
IncludeBlocks: Merge
BreakBeforeBraces: Custom
BraceWrapping:
AfterFunction: true
BeforeElse: false
ForEachMacros: ["tuple_foreach", "local_foreach", "lldq_foreach", "hlist_for_each", "hlist_for_each_safe", "vector_foreach_struct", "basic_block_foreach_safe", "klvm_block_foreach", "klvm_insn_foreach", "TEST", "operand_foreach", "bb_pred_foreach", "bb_succ_foreach", "list_foreach", "list_foreach_safe", "use_foreach", "edge_in_foreach", "edge_out_foreach", "basic_block_foreach", "insn_foreach", "use_foreach_safe", "insn_foreach_safe", "vector_foreach", "vector_foreach_reverse"]