<div dir="ltr">clang-cl is supposed to reach a fixpoint in one iteration. If it doesn't, that's a bug. If you can, please post a reduced repro case :)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 25, 2019 at 5:38 PM Sebastian Pipping via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi!<br>
<br>
<br>
I'm trying to integrate clang-format version 9 with CI in a way that the<br>
CI run only passes if applying clang-format yields the exact same<br>
code, i.e. "git diff --exit-code" returns 0.  The idea is that every<br>
pull request would only pass if clang-format<br>
<br>
When trying to put that approach to action with libexpat [1]<br>
I noticed that multiple runs to clang-format do not seem to produce the<br>
same code, at least not with the two version of Clang 9 that I tested<br>
[2], and at least not with libexpat code.<br>
<br>
I wonder if that's a known problem, if it's fixed in later versions<br>
of clang-format, if you are aware of workarounds, or if I just need<br>
to say goodbye to combining clang-format and CI for stable style checking.<br>
<br>
Thanks in advance!<br>
<br>
Best<br>
<br>
<br>
<br>
Sebastian<br>
<br>
<br>
[1] <a href="https://github.com/libexpat/libexpat/pull/293" rel="noreferrer" target="_blank">https://github.com/libexpat/libexpat/pull/293</a><br>
[2] 9.0.0.9999 commit 28c954cf961a846789a972a8ed179b7108244ae7<br>
_______________________________________________<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="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div>