]> granicus.if.org Git - clang/commit
[ClangFormat] ObjCSpaceBeforeProtocolList should be true in the google style
authorBen Hamilton <benhamilton@google.com>
Thu, 18 Jan 2018 18:37:16 +0000 (18:37 +0000)
committerBen Hamilton <benhamilton@google.com>
Thu, 18 Jan 2018 18:37:16 +0000 (18:37 +0000)
commita8bf4d5625e5df9e4d3d597858ce777161b0aea4
treecedd3c51dcb2c5bbfb1ef011fe8641d0973d65f3
parent0a720a33a5c199d88c84d128bab7a54303623fb3
[ClangFormat] ObjCSpaceBeforeProtocolList should be true in the google style

Summary:
The Google style guide is neutral on whether there should be a
space before the protocol list in an Objective-C @interface or
@implementation.

The majority of Objective-C code in both Apple's public
header files and Google's open-source uses a space before
the protocol list, so this changes the google style to
default ObjCSpaceBeforeProtocolList to true.

Test Plan: make -j12 FormatTests && ./tools/clang/unittests/Format/FormatTests

Reviewers: krasimir, djasper, klimek

Reviewed By: krasimir

Subscribers: klimek, cfe-commits

Differential Revision: https://reviews.llvm.org/D41074

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@322873 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/Format.cpp
unittests/Format/FormatTestObjC.cpp