]> granicus.if.org Git - clang/commit
Fix comment alignment behavior.
authorDaniel Jasper <djasper@google.com>
Wed, 24 Apr 2013 06:33:59 +0000 (06:33 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 24 Apr 2013 06:33:59 +0000 (06:33 +0000)
commitaf8497681e38106ad6f84408e029537e2a13d79d
treea5dc54db9377b7a60d54e014d9bc0bf62515bc48
parent44f72d34a947c654f88ea212b7fe5834615bca11
Fix comment alignment behavior.

In the following snippet, clang-format incorrectly aligned the
trailing comment, when only the last line was formatted:

  int aaaaaa; // comment
  int b;
  int c; // Formatting only this line moved this comment.

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