clang-format: Fix bug in multiline comment wrapping.
authorDaniel Jasper <djasper@google.com>
Wed, 6 May 2015 07:17:22 +0000 (07:17 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 6 May 2015 07:17:22 +0000 (07:17 +0000)
commit6d9b88dd997c3188446c6f63c852676bc0e6e432
tree6884dabf90d6bd682d74d2c97f1768ab4ff15553
parent26f165b04e803756b870f59fd5f1ab0cd89d0ae0
clang-format: Fix bug in multiline comment wrapping.

Splitting:
  /**
   * multiline block comment
   *
   */

Before:
  /**
   * multiline block
   *comment
   *
   */

After:
  /**
   * multiline block
   * comment
   *
   */

The reason was that the empty line inside the comment (with just the "*") was
confusing the comment breaking logic.

llvm-svn: 236573
clang/lib/Format/BreakableToken.cpp
clang/unittests/Format/FormatTest.cpp