Bladeren bron

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.
Timothy Flynn 1 jaar geleden
bovenliggende
commit
66a89bd695
1 gewijzigde bestanden met toevoegingen van 13 en 1 verwijderingen
  1. 13 1
      .clang-format

+ 13 - 1
.clang-format

@@ -1,5 +1,4 @@
 ---
-Language: Cpp
 AlignEscapedNewlines: Left
 AlignTrailingComments:
     Kind: Always
@@ -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
+
+...