Fix for #49164 issue.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/unittests/Format/FormatTest.cpp | ||
---|---|---|
4811 | Can you fix this first |
clang/unittests/Format/FormatTest.cpp | ||
---|---|---|
4810–4811 | Please test with something simpler. |
clang/unittests/Format/FormatTest.cpp | ||
---|---|---|
4810–4811 | Did this show the bugged behavior without the patch? Regarding the // clang-format off there is the question what do we want in the tests? Show the long lines as the long lines, then we need to turn it off some times. Or do we want to keep the limit and break the strings, thus making it harder to read for the human? |
clang/unittests/Format/FormatTest.cpp | ||
---|---|---|
4810–4811 |
Yes. I checked with a pretty fresh master.
I'm pretty much against adding // clang-format off too, it hurts more than it helps IMO. |
Yes. Looks like I understood wrong how pre-merge clang-format check works, thanks everyone for help
LGTM. Thanks for working on this!
But before landing, please retest the original misformatted code from the bug report with a freshly built clang-format.
Also, do you have commit rights? If not, do you want someone to land it on your behalf? If so, please send your name and email address to be used for the contribution.
I will build fresh main branch tomorrow (it tooks 1+ hour) and will comment here about test results
I don't have commit rights, so it will be great if someone commit it with user "Armen Khachkinaev" and email "armen114@yandex.ru"
Thanks
clang/unittests/Format/FormatTest.cpp | ||
---|---|---|
4810 | Please remove the newline and re-run FormatTests. | |
4810–4811 |
I prefer the latter. |
clang/unittests/Format/FormatTest.cpp | ||
---|---|---|
4810 | FormatTests pass again |
clang/unittests/Format/FormatTest.cpp | ||
---|---|---|
4810 | Done when landing. |
clang/unittests/Format/FormatTest.cpp | ||
---|---|---|
19610 | Oops. Fixed post-commit. |
Please remove the newline and re-run FormatTests.