Skip to content

Commit

Permalink
Moving ObjC specific clang-format rules to the common config
Browse files Browse the repository at this point in the history
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
  • Loading branch information
shergin authored and facebook-github-bot committed Feb 11, 2019
1 parent bf58ba9 commit 64d6ea8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 89 deletions.
8 changes: 6 additions & 2 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: false
ObjCSpaceAfterProperty: true
ObjCSpaceBeforeProtocolList: true
PenaltyBreakBeforeFirstCallParameter: 1
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
Expand All @@ -84,4 +84,8 @@ SpacesInSquareBrackets: false
Standard: Cpp11
TabWidth: 8
UseTab: Never
---
Language: ObjC
ColumnLimit: 120
BreakBeforeBraces: WebKit
...
87 changes: 0 additions & 87 deletions React/.clang-format

This file was deleted.

0 comments on commit 64d6ea8

Please sign in to comment.