[cfe-dev] Repeated clang-format'ting keeps changing code / use of clang-format in CI

David Blaikie via cfe-dev cfe-dev at lists.llvm.org
Fri Jul 26 13:06:28 PDT 2019


In general, I would expect any instability to be a bug - no doubt there are
bugs, but if you can reduce the example to something easy to communicate in
a bug report, etc, and file it, I expect some folks would be interested in
fixing it.

On Fri, Jul 26, 2019 at 1:04 PM Sebastian Pipping via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> Hello again,
>
>
> a quick update for anyone who wondered the same and ran into my previous
> e-mail:
>
> For a workaround, troublesome code can be wrapped by…
>
>   // clang-format off
>   [..]
>   // clang-format on
>
> …for C++ or…
>
>   /* clang-format off */
>   [..]
>   /* clang-format on */
>
> …for C to disable re-formatting of that section of code.  That way,
> clang-format produces stable results and becomes suitable for during CI.
>
> Best
>
>
>
> Sebastian
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190726/8b818961/attachment.html>


More information about the cfe-dev mailing list