]> granicus.if.org Git - clang/commit
clang-format: Fix binary operator detection before lambdas.
authorDaniel Jasper <djasper@google.com>
Thu, 8 May 2014 08:50:10 +0000 (08:50 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 8 May 2014 08:50:10 +0000 (08:50 +0000)
commit26368c6ccd4d2f4b8d4b3bdd5f412338d22b3a28
tree90e8d9ac6f8b1b17472702fa114fe440690526fc
parent38070dc351918a3d6ca28a25c19cced2aae25f13
clang-format: Fix binary operator detection before lambdas.

Before:
  bool foo = true&& [] { return false; }();

After:
  bool foo = true && [] { return false; }();

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