]> granicus.if.org Git - clang/commit
clang-format: Fix selective indentaiton in nested blocks.
authorDaniel Jasper <djasper@google.com>
Wed, 29 Apr 2015 08:29:26 +0000 (08:29 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 29 Apr 2015 08:29:26 +0000 (08:29 +0000)
commitad0dad7da07944ce6b2a3e719ca87784ccd41af4
tree74c1526ec1488698fd1dd5659153b225f881f91c
parent93281cbcbb9b1ea2b6788a629d6aef3284957d05
clang-format: Fix selective indentaiton in nested blocks.

Buggy case:
  someFunction(
      [] {
        // comment
        int i; // invoke formatting here.
      },       // force line break
      aaa);

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