<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>That's true; none of the other literals will be split (except the @() one, which behaves like any other parenthetical). I was just trying to back-explain why it's nicer for the Parser and AST to not put the @ into the string literal token.</div><div><br></div><div>Jordan</div><div><br></div><br><div><div>On Jan 14, 2014, at 11:13, Daniel Jasper <<a href="mailto:djasper@google.com">djasper@google.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Yeah.. I think that works fine. The crucial problem here is the case where clang-format needs to split the string-literal and add additional '@'s.. I don't think that applies to other literals. Or are you thinking of something specific?</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 14, 2014 at 6:04 PM, Jordan Rose <span dir="ltr"><<a href="mailto:jordan_rose@apple.com" target="_blank">jordan_rose@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On Jan 14, 2014, at 1:53 , Daniel Jasper <<a href="mailto:djasper@google.com">djasper@google.com</a>> wrote:<br>
<br>
> Author: djasper<br>
> Date: Tue Jan 14 03:53:07 2014<br>
> New Revision: 199198<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=199198&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=199198&view=rev</a><br>
> Log:<br>
> clang-format: Fix bug introduced in r198871.<br>
><br>
> We cannot simply change the start column to accomodate for the @ in an<br>
> ObjC string literal as that will make clang-format happily violate the<br>
> column limit.<br>
><br>
> Use a different workaround instead. However, a better long-term<br>
> solution might be to join the @ and the rest of the literal into a<br>
> single token.<br>
<br>
</div>Eh, you're going to have this problem with every other @ literal now: @123, @YES (expands to @__objc_yes), @(cos(x)). It pretty much always wants to stick to its following token, whatever that may be.<br>
<span class="HOEnZb"><font color="#888888"><br>
Jordan<br>
</font></span></blockquote></div><br></div>
</blockquote></div><br></body></html>