From 66a89bd6958c06e93fd7a1d4d9983f4621da1e1f Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Sun, 20 Aug 2023 16:35:01 -0400 Subject: [PATCH] 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. --- .clang-format | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index 14fbe60da23..2ee079f2bba 100644 --- a/.clang-format +++ b/.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 + +...