[PATCH] D33589: clang-format: consider not splitting tokens in optimization

Francois Ferrand via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 30 05:25:23 PDT 2017


Typz marked an inline comment as done.
Typz added inline comments.


================
Comment at: unittests/Format/FormatTest.cpp:8571
+            "        */",
+            format("int a; /* first line second line third line */", Style));
+}
----------------
Typz wrote:
> This is not working as expected, format return:
> 
>   int a; /* first line
>             * second *
>             line third
>             * line */
> 
> Any clue how things could go so wrong?
This was a bug in tests: should not use test::messUp() with multi-line comments.


https://reviews.llvm.org/D33589





More information about the cfe-commits mailing list