]> granicus.if.org Git - clang/commit
clang-format: Fix parsing and indenting lambdas.
authorDaniel Jasper <djasper@google.com>
Thu, 5 Sep 2013 10:04:31 +0000 (10:04 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 5 Sep 2013 10:04:31 +0000 (10:04 +0000)
commitac2c974bc64d3767ad5e39451a874c50b3004b3a
tree6d748ace1a9f257b1ae312ff5a14c8ebb2c7710b
parent567dcf95424d69657f75e4bfd028967ca1f9eb8d
clang-format: Fix parsing and indenting lambdas.

Before:
  void f() {
    other(x.begin(), x.end(), //
                         [&](int, int) { return 1; });
  }

After:
  void f() {
    other(x.begin(), x.end(), //
          [&](int, int) { return 1; });
  }

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