]> granicus.if.org Git - clang/commit
Fix incorrect line breaking before trailing block comments.
authorDaniel Jasper <djasper@google.com>
Thu, 6 Jun 2013 16:08:57 +0000 (16:08 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 6 Jun 2013 16:08:57 +0000 (16:08 +0000)
commit65d2c3829494d254039683c73f95843c29c661b4
tree9fbb2dc62e5b1667c3917aca57f4a91cdca473a1
parent48a1e81715bf9c37a4168d83f4218e6517e29541
Fix incorrect line breaking before trailing block comments.

Before, clang-format would happily move a trailing block comment to a
new line, which normally changes the perceived binding of that comment.

E.g., it would move:
void f() { /* comment */
  ...
}
to:
void f() {
  /* comment */
  ...
}

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183420 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTest.cpp