]> granicus.if.org Git - clang/commit
clang-format: Fix alignConsecutiveAssignments.
authorDaniel Jasper <djasper@google.com>
Tue, 22 Sep 2015 09:32:00 +0000 (09:32 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 22 Sep 2015 09:32:00 +0000 (09:32 +0000)
commit21b3f468fc871980e422404f35fcac7de83cfa9c
tree5ef6559077ce81d9778efa035b4bc58fb25f4939
parentc778dba8d43c16e98cfd5774b8bfe7e50828a60c
clang-format: Fix alignConsecutiveAssignments.

It wasn't correctly handling this case:

  int oneTwoThree = 123;
  int oneTwo      = 12;
  method();

Review: http://reviews.llvm.org/D12369
Patch by Beren Minor. Thank you!

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