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))
|
if (Right.isOneOf(tok::semi, tok::comma))
|
||||||
return false;
|
return false;
|
||||||
if (Right.is(tok::less) &&
|
if (Right.is(tok::less) &&
|
||||||
(Left.isOneOf(tok::kw_template, tok::r_paren) ||
|
(Left.is(tok::kw_template) ||
|
||||||
(Line.Type == LT_ObjCDecl && Style.ObjCSpaceBeforeProtocolList)))
|
(Line.Type == LT_ObjCDecl && Style.ObjCSpaceBeforeProtocolList)))
|
||||||
return true;
|
return true;
|
||||||
if (Left.isOneOf(tok::exclaim, tok::tilde))
|
if (Left.isOneOf(tok::exclaim, tok::tilde))
|
||||||
|
|
Loading…
Reference in New Issue