clang-format: Fix regression introduced by r189337.
authorDaniel Jasper <djasper@google.com>
Fri, 6 Sep 2013 08:08:14 +0000 (08:08 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 6 Sep 2013 08:08:14 +0000 (08:08 +0000)
commit562ecd4444b94fbcf9c3e860991228b1fa85e273
tree9f1ba3e42b3a342ba93cea289dd96796296465c8
parent1c5d9df8d1af0f266923edba8fcb367a51a03d26
clang-format: Fix regression introduced by r189337.

Before:
  if (aaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaa(
          aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) == 5) ...

After:
  if (aaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaa(
          aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa)
      == 5) ...

Also precompute startsBinaryExpression() to improve performance.

llvm-svn: 190124
clang/lib/Format/ContinuationIndenter.cpp
clang/lib/Format/FormatToken.h
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp