[PATCH] D129057: [clang-format] Break on AfterColon only if not followed by comment

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 4 12:33:41 PDT 2022


owenpan added a comment.

In D129057#3627748 <https://reviews.llvm.org/D129057#3627748>, @curdeius wrote:

> LGTM. Thanks for addressing my comments.

Thank you for your quick review and good comments as always!



================
Comment at: clang/unittests/Format/FormatTest.cpp:7136
                Style);
+  verifyFormat("Constructor() : // NOLINT\n"
+               "    aaaa(aaaa) {}",
----------------
curdeius wrote:
> How about very long comments? They don't get split now? Please add a test case
Now trailing comments don't wrap after the colon, but long ones still get split and aligned as usual.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D129057/new/

https://reviews.llvm.org/D129057



More information about the cfe-commits mailing list