]> granicus.if.org Git - clang/commit
clang-format: Fix template declaration line breaking with comment.
authorDaniel Jasper <djasper@google.com>
Wed, 9 Oct 2013 15:06:17 +0000 (15:06 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 9 Oct 2013 15:06:17 +0000 (15:06 +0000)
commit6e7f1934f489b48a53b8c9af314921c0e55ee5b5
tree2efa175dc70fae732f32739fb54220abf40d3dff
parent87d52eb5ae91f4b5f1ce8c9ee747217843d4ffcf
clang-format: Fix template declaration line breaking with comment.

Before, clang-format would always insert a linebreak before the comment
in code like:
  template <typename T> // T can be A, B or C.
  struct S {};

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