I made it longer so the two lines (__attribute__((foo)) vs. [[foo]]) had the same length.<div><br></div><div>If I shorten it much more, everything goes on one line.</div><div><br><div class="gmail_quote"><div dir="ltr">On Wed, Mar 7, 2018, 03:42 Krasimir Georgiev via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">krasimir added inline comments.<br>
<br>
<br>
================<br>
Comment at: unittests/Format/FormatTest.cpp:6068-6069<br>
+  verifyFormat("void f() [[deprecated(\"so sorry\")]];");<br>
+  verifyFormat("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n"<br>
+               "    [[unused]] aaaaaaaaaaaaaaaaaaaaaaa(int i);");<br>
+}<br>
----------------<br>
benhamilton wrote:<br>
> I couldn't figure out why this breaks before the `[` in `[[unused]]`, when the identical test using `__attribute__((unused))` above does *not* break before the `__attribute__`.<br>
><br>
> I ran with `-debug` and the two seem fairly similar. Can anyone help shed light on this?<br>
><br>
> ## With `__attribute__((unused))`<br>
><br>
> P8067<br>
><br>
> ## With `[[unused]]`<br>
><br>
> P8068<br>
The block of `a`-s appears to be longer here than in the `__attribute__` example. That might be a reason.<br>
<br>
<br>
Repository:<br>
  rC Clang<br>
<br>
<a href="https://reviews.llvm.org/D43902" rel="noreferrer" target="_blank">https://reviews.llvm.org/D43902</a><br>
<br>
<br>
<br>
</blockquote></div></div>