Repository navigation
Expand file tree
/
Copy path.clang-format
More file actions
72 lines (59 loc) · 1.51 KB
/
Copy path.clang-format
File metadata and controls
72 lines (59 loc) · 1.51 KB
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
62
63
64
65
66
67
68
69
70
71
72
# Clang-Format Configuration for Objective-C
# Compatible with LLVM 21+
# Language: ObjC
BasedOnStyle: LLVM
# Indentation
IndentWidth: 4
TabWidth: 4
UseTab: ForIndentation
# Braces
BreakBeforeBraces: Attach
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
# Line Length
ColumnLimit: 120
# Pointers & Qualifiers
PointerAlignment: Right
QualifierAlignment: Left
# Spaces
SpacesBeforeTrailingComments: 2
SpacesInContainerLiterals: true
SpacesInSquareBrackets: false
SpaceAfterCStyleCast: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesInParens: Never
# Includes
IncludeBlocks: Regroup
SortIncludes: CaseSensitive
# Comments
ReflowComments: true
# Blank Lines & Separation
SeparateDefinitionBlocks: Always
MaxEmptyLinesToKeep: 1
KeepEmptyLinesAtTheStartOfBlocks: false
EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: LogicalBlock
# Wrapping & Alignment
AlignAfterOpenBracket: AlwaysBreak
AlignConsecutiveAssignments: None
AlignConsecutiveDeclarations: None
AlignOperands: Align
AlignTrailingComments:
Kind: Always
OverEmptyLines: 0
# Ternary & Conditionals
BreakBeforeTernaryOperators: true
# Objective-C Specific
ObjCBlockIndentWidth: 4
ObjCBinPackProtocolList: Never
ObjCBreakBeforeNestedBlockParam: true
# Penalties
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 200
# Misc
InsertTrailingCommas: None