clang-format: Correctly identify multiplications in braces init lists.
authorDaniel Jasper <djasper@google.com>
Thu, 22 May 2014 09:00:33 +0000 (09:00 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 22 May 2014 09:00:33 +0000 (09:00 +0000)
commit3948516a03ba3405e2578d27fcaf898e58dc88b5
treeec4165433a4d0f0296e231614e95a83f801d6790
parent515ad8c490582d9b3b71274ed9255dc4a23c4610
clang-format: Correctly identify multiplications in braces init lists.

Before:
  int i{a *b};

After:
  int i{a * b};

Also fix unrelated issue where braced init lists were counted as blocks
and prevented single-line functions.

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