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

Raphaël Londeix via cfe-dev cfe-dev at lists.llvm.org
Mon Jul 29 06:04:32 PDT 2019


Hi, this is the smallest reproducer I could find with the default
clang-format configuration.

$ clang-format --version
TRC clang-format version 8.0.0 (tags/RELEASE_800/final) (based on LLVM
8.0.0)
$ clang-format test.c > test.c.1 && clang-format test.c.1 > test.c.2 &&
diff test.c.1 test.c.2
1,4c1,5
< const char *expected =
XCS("ABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPAB"
<                            "C")
XCS("ABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJ"
<                                     "KLMNOPABC") XCS(
<     "ABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABC")
---
> const char *expected = XCS(
>     "ABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPAB"
>     "C") XCS("ABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJ"
>              "KLMNOPABC")
XCS("ABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOP"
>                               "ABC")


-- 
Raphaël Londeix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190729/ed8f8be5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.c
Type: text/x-csrc
Size: 970 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190729/ed8f8be5/attachment.c>


More information about the cfe-dev mailing list