clang-format: Fix column layout with a comment in the last line.
authorDaniel Jasper <djasper@google.com>
Wed, 15 Jul 2015 16:26:47 +0000 (16:26 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 15 Jul 2015 16:26:47 +0000 (16:26 +0000)
commit00fb2a118398e2d8d9f5f246db8f746d2aec69d6
tree970d1e39831e6f5f565572204dc3076d8334adee
parent2e0133526e85e53ff67a25511b9789d2e10f17d2
clang-format: Fix column layout with a comment in the last line.

Before:
  int aaaaa[] = {
      1, 2,
      3, // comment
      4, 5,
      6  // comment
  };

After:
  int aaaaa[] = {
      1, 2, 3, // comment
      4, 5, 6  // comment
  };

llvm-svn: 242299
clang/lib/Format/FormatToken.cpp
clang/unittests/Format/FormatTest.cpp