]> granicus.if.org Git - clang/commit
[clang-Format] Fix indentation of member call after block
authorIlya Biryukov <ibiryukov@google.com>
Mon, 17 Sep 2018 07:46:20 +0000 (07:46 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Mon, 17 Sep 2018 07:46:20 +0000 (07:46 +0000)
commitd046e91f17b5336a9c603c142613f2b80a8ff888
treeb9142cd315c6e375a714073c0a729ccc8e54d947
parentce5ca6bcf2d662186c486961b1ff2a4ce8356529
[clang-Format] Fix indentation of member call after block

Summary:
before patch:
> echo "test() {([]() -> {int b = 32;return 3;}).as("");});" | clang-format -style=Google

```
test() {
  ([]() -> {
    int b = 32;
    return 3;
  })
      .as();
});
```

after patch:
> echo "test() {([]() -> {int b = 32;return 3;}).as("");});" | clang-format -style=Google

```
test() {
  ([]() -> {
    int b = 32;
    return 3;
  }).as();
});
```

Patch by Anders Karlsson (ank)!

Reviewers: klimek

Reviewed By: klimek

Subscribers: danilaml, acoomans, klimek, cfe-commits

Differential Revision: https://reviews.llvm.org/D45719

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