forked from OSchip/llvm-project
clang-format: Undo r214508. It was essentially always removing the
space where we already had the flag ObjCSpaceBeforeProtocolList to control it. I don't know what I was thinking. llvm-svn: 235076
This commit is contained in:
parent
f56f98c925
commit
20e15563ff
|
@ -1664,7 +1664,7 @@ bool TokenAnnotator::spaceRequiredBetween(const AnnotatedLine &Line,
|
|||
if (Right.isOneOf(tok::semi, tok::comma))
|
||||
return false;
|
||||
if (Right.is(tok::less) &&
|
||||
(Left.isOneOf(tok::kw_template, tok::r_paren) ||
|
||||
(Left.is(tok::kw_template) ||
|
||||
(Line.Type == LT_ObjCDecl && Style.ObjCSpaceBeforeProtocolList)))
|
||||
return true;
|
||||
if (Left.isOneOf(tok::exclaim, tok::tilde))
|
||||
|
|
|
@ -6751,7 +6751,7 @@ TEST_F(FormatTest, FormatObjCInterface) {
|
|||
"+ (id)init;\n"
|
||||
"@end");
|
||||
|
||||
verifyGoogleFormat("@interface Foo (HackStuff) <MyProtocol>\n"
|
||||
verifyGoogleFormat("@interface Foo (HackStuff)<MyProtocol>\n"
|
||||
"+ (id)init;\n"
|
||||
"@end");
|
||||
|
||||
|
@ -6793,7 +6793,7 @@ TEST_F(FormatTest, FormatObjCInterface) {
|
|||
|
||||
FormatStyle OnePerLine = getGoogleStyle();
|
||||
OnePerLine.BinPackParameters = false;
|
||||
verifyFormat("@interface aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa () <\n"
|
||||
verifyFormat("@interface aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ()<\n"
|
||||
" aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,\n"
|
||||
" aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,\n"
|
||||
" aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,\n"
|
||||
|
|
Loading…
Reference in New Issue