Skip to content

Commit

Permalink
Meta: Support using clang-format on Objective-C++ files
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
trflynn89 committed Aug 23, 2023
1 parent 43da070 commit 66a89bd
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .clang-format
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
Language: Cpp
AlignEscapedNewlines: Left
AlignTrailingComments:
Kind: Always
Expand All @@ -20,3 +19,16 @@ RemoveSemicolon: true
RequiresClausePosition: WithFollowing
RequiresExpressionIndentation: OuterScope
SpaceAfterTemplateKeyword: false

---
Language: ObjC
BinPackParameters: false
BraceWrapping:
AfterObjCDeclaration: true
ObjCBinPackProtocolList: Never
ObjCBlockIndentWidth: 4
ObjCBreakBeforeNestedBlockParam: true
ObjCSpaceAfterProperty: true
ObjCSpaceBeforeProtocolList: true

...

0 comments on commit 66a89bd

Please sign in to comment.