Fix a bug where we would move a following line into a comment.
authorDaniel Jasper <djasper@google.com>
Wed, 16 Jan 2013 17:00:50 +0000 (17:00 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 16 Jan 2013 17:00:50 +0000 (17:00 +0000)
commit69987d5415f2260540be1cafa460362ad74ae849
treed9cd541a6924b550e762c77d1f06538934b50f07
parent99b0a6a03a3ad7285478242b6522683112888a63
Fix a bug where we would move a following line into a comment.

Before: Constructor() : a(a), // comment a(a) {}
After:  Constructor() : a(a), // comment
                        a(a) {}

Needed this as a quick fix. Will add more tests for this in a future
commit.

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