Skip to content

Commit 64d6ea8

Browse files
sherginfacebook-github-bot
authored andcommitted
Moving ObjC specific clang-format rules to the common config
Summary: I found that clang-format config file allows to specify rules on a per-language basis, so I moved Objective-C specific rules to the unified config. Now we have only one clang-format file. Yay! Reviewed By: JoshuaGross Differential Revision: D14018902 fbshipit-source-id: 45c1e185b8f2b8151ea202b3d9a68a3886597198
1 parent bf58ba9 commit 64d6ea8

File tree

2 files changed

+6
-89
lines changed

2 files changed

+6
-89
lines changed

.clang-format

+6-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ MacroBlockEnd: ''
6060
MaxEmptyLinesToKeep: 1
6161
NamespaceIndentation: None
6262
ObjCBlockIndentWidth: 2
63-
ObjCSpaceAfterProperty: false
64-
ObjCSpaceBeforeProtocolList: false
63+
ObjCSpaceAfterProperty: true
64+
ObjCSpaceBeforeProtocolList: true
6565
PenaltyBreakBeforeFirstCallParameter: 1
6666
PenaltyBreakComment: 300
6767
PenaltyBreakFirstLessLess: 120
@@ -84,4 +84,8 @@ SpacesInSquareBrackets: false
8484
Standard: Cpp11
8585
TabWidth: 8
8686
UseTab: Never
87+
---
88+
Language: ObjC
89+
ColumnLimit: 120
90+
BreakBeforeBraces: WebKit
8791
...

React/.clang-format

-87
This file was deleted.

0 commit comments

Comments
 (0)