Fix incorrect token counting introduced by r185319.
authorDaniel Jasper <djasper@google.com>
Mon, 1 Jul 2013 16:43:38 +0000 (16:43 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 1 Jul 2013 16:43:38 +0000 (16:43 +0000)
commitca7bd720eb64b80bbe07322be94a327a2823dd9f
tree969e321c3f53dc221782e85a3c7d0ce9ec28f158
parent4798a08df8c85aa3637bbb9662c895581a336711
Fix incorrect token counting introduced by r185319.

This lead to weird formatting.
Before:
DoSomethingWithVector({ {} /* No data */ }, {
  { 1, 2 }
});
After:
DoSomethingWithVector({ {} /* No data */ }, { { 1, 2 } });

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