clang-format: Fix incorrect multi-var declstmt detection.
authorDaniel Jasper <djasper@google.com>
Mon, 20 Apr 2015 12:54:29 +0000 (12:54 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 20 Apr 2015 12:54:29 +0000 (12:54 +0000)
commite4ab49e8d3cfd1556b61d4af79fede0e477ebfb0
treed73fa6c819d4d8b731237e590deeda47a906db48
parent29c8270916547beeec7c3ba94fd58118a771b29a
clang-format: Fix incorrect multi-var declstmt detection.

This is now obvious as the pointer alignment behavior was changed.

Before (even with pointer alignment "Left"):
  MACRO Constructor(const int &i) : a(a), b(b) {}

After:
  MACRO Constructor(const int& i) : a(a), b(b) {}

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