]> granicus.if.org Git - clang/commit
clang-format: Fix bug in column-layout formatting.
authorDaniel Jasper <djasper@google.com>
Mon, 26 Aug 2013 08:10:17 +0000 (08:10 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 26 Aug 2013 08:10:17 +0000 (08:10 +0000)
commit332c67703f63fafd26cf88fc31faeb80c1523725
treea1d6804299a9ce8fc514df73c041c6c2ef0cabcc
parentec0258a0a89ae39bfb6c5962ee1b8310481bc00f
clang-format: Fix bug in column-layout formatting.

Specific arrangements of comments after trailing commas could confuse
the column width calculation, e.g. in:

vector<int> x = { a, b,
                  /* some */ /* comment */ };

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