]> granicus.if.org Git - clang/commit
clang-format: Don't confuse operator[] with lambdas.
authorDaniel Jasper <djasper@google.com>
Fri, 6 Sep 2013 21:25:51 +0000 (21:25 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 6 Sep 2013 21:25:51 +0000 (21:25 +0000)
commit520cca87e38185872212849562951906be5068e9
tree0961fd5709a115d7be6d3fcc8e7abd4a13b18f49
parent130fcc8097ac79c770d480765d4f79b428b285b8
clang-format: Don't confuse operator[] with lambdas.

Before:
  double &operator[](int i) { return 0; } int i;

After:
  double &operator[](int i) { return 0; }
  int i;

This fixes llvm.org/PR17134.

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