]> granicus.if.org Git - clang/commit
Fix aligning of comments.
authorManuel Klimek <klimek@google.com>
Thu, 23 May 2013 20:46:07 +0000 (20:46 +0000)
committerManuel Klimek <klimek@google.com>
Thu, 23 May 2013 20:46:07 +0000 (20:46 +0000)
commit854ca794c17679ba4d0e529e8eb8b6b3703d1984
tree2126907a67e23d864ef983d52db85e574222aba4
parent23ad339cdb8ee55c5f243bc2573c5f9d6144a647
Fix aligning of comments.

Previously we started sequences to align for single line comments when
the previous line had a trailing comment, but the sequence was broken
for other reasons.

Now we re-format:
// a
 // b
f(); // c
to:
// a
// b
f(); // c

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