Skip to content

Commit 66a89bd

Browse files
committedAug 23, 2023
Meta: Support using clang-format on Objective-C++ files
We can (and have to) remove the C++ language identifier from the main set of rules. This will allow these rule to propagate to all languages.
1 parent 43da070 commit 66a89bd

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed
 

‎.clang-format

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
Language: Cpp
32
AlignEscapedNewlines: Left
43
AlignTrailingComments:
54
Kind: Always
@@ -20,3 +19,16 @@ RemoveSemicolon: true
2019
RequiresClausePosition: WithFollowing
2120
RequiresExpressionIndentation: OuterScope
2221
SpaceAfterTemplateKeyword: false
22+
23+
---
24+
Language: ObjC
25+
BinPackParameters: false
26+
BraceWrapping:
27+
AfterObjCDeclaration: true
28+
ObjCBinPackProtocolList: Never
29+
ObjCBlockIndentWidth: 4
30+
ObjCBreakBeforeNestedBlockParam: true
31+
ObjCSpaceAfterProperty: true
32+
ObjCSpaceBeforeProtocolList: true
33+
34+
...

0 commit comments

Comments
 (0)
Please sign in to comment.