[cfe-dev] Repeated clang-format'ting keeps changing code / use of clang-format in CI
Nico Weber via cfe-dev
cfe-dev at lists.llvm.org
Fri Jul 26 13:07:48 PDT 2019
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 :)
On Thu, Jul 25, 2019 at 5:38 PM Sebastian Pipping via cfe-dev <
cfe-dev at lists.llvm.org> wrote:
> I'm trying to integrate clang-format version 9 with CI in a way that the
> CI run only passes if applying clang-format yields the exact same
> code, i.e. "git diff --exit-code" returns 0. The idea is that every
> pull request would only pass if clang-format
> When trying to put that approach to action with libexpat 
> I noticed that multiple runs to clang-format do not seem to produce the
> same code, at least not with the two version of Clang 9 that I tested
> , and at least not with libexpat code.
> I wonder if that's a known problem, if it's fixed in later versions
> of clang-format, if you are aware of workarounds, or if I just need
> to say goodbye to combining clang-format and CI for stable style checking.
> Thanks in advance!
>  https://github.com/libexpat/libexpat/pull/293
>  220.127.116.1199 commit 28c954cf961a846789a972a8ed179b7108244ae7
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev