<div dir="ltr">I tried again with the latest version r283423 on mac and it is still the same. The options are "-i -style=google".<div><br></div><div><div><font face="monospace, monospace">struct A {</font></div><div><font face="monospace, monospace">  template <typename T></font></div><div><font face="monospace, monospace">      void foo(T&& t) & noexcept;</font></div><div><font face="monospace, monospace">};</font></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 6, 2016 at 10:02 AM, Han Wang <span dir="ltr"><<a href="mailto:wanghan02@gmail.com" target="_blank">wanghan02@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">It's windows installer based on <span style="color:rgb(0,0,0);font-family:"georgia,palatino,times,roman";font-size:14.6667px;background-color:rgb(247,247,247)">SVN r282394 (26 September 2016).</span><span style="color:rgb(0,0,0);font-family:"georgia,palatino,times,roman";font-size:14.6667px;background-color:rgb(247,247,247)"> </span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 5, 2016 at 9:33 PM, Kirill Bobyrev <span dir="ltr"><<a href="mailto:kbobyrev.lists@gmail.com" target="_blank">kbobyrev.lists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Please at least specify major version of clang-format. Mine handles this piece of code just fine (4.0-dev r283306).<div><br></div><div>—</div><div>Kirill</div><div><br><div><blockquote type="cite"><div><div class="m_1772348655594293970h5"><div>On 5 Oct 2016, at 18:30, Han Wang via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>> wrote:</div><br class="m_1772348655594293970m_9111370904500333Apple-interchange-newline"></div></div><div><div><div class="m_1772348655594293970h5"><div dir="ltr">Sorry the semicolon is missing at the end of class definition but it doesn't change the result. </div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 5, 2016 at 4:45 PM, Han Wang <span dir="ltr"><<a href="mailto:wanghan02@gmail.com" target="_blank">wanghan02@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, <div><br></div><div>Let's say we have a simple template method with ref-qualification and noexcept. </div><div><br></div><div><div><font face="monospace, monospace">struct A {</font></div><div><font face="monospace, monospace">  template <typename T></font></div><div><font face="monospace, monospace">  void foo(T&& t) & noexcept {</font></div><div><font face="monospace, monospace">    DoSomething();    </font></div><div><font face="monospace, monospace">    DoSomethingElse();</font></div><div><font face="monospace, monospace">  }</font></div><div><font face="monospace, monospace">}</font></div></div><div><br></div><div>If we use clang-format to re-format the code with google style (or llvm or other styles), we get</div><div><br></div><div><div><font face="monospace, monospace">struct A {</font></div><div><font face="monospace, monospace">  template <typename T></font></div><div><font face="monospace, monospace">      void foo(T&& t) & noexcept {</font></div><div><font face="monospace, monospace">    DoSomething();</font></div><div><font face="monospace, monospace">    DoSomethingElse();</font></div><div><font face="monospace, monospace">  }</font></div><div><font face="monospace, monospace">}</font></div></div><div><br></div><div>If we remove the noexcept or if we put a const before ref-qualification the reformat will work correctly. </div><div><br></div><div><br></div><div><br></div></div>
</blockquote></div><br></div></div></div>
______________________________<wbr>_________________<br>cfe-dev mailing list<br><a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br></div></blockquote></div><br></div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>