[clang-format] Reference qualifiers in member templates causing extra indentation.
authorPaul Hoad <mydeveloperday@gmail.com>
Sun, 29 Sep 2019 13:45:38 +0000 (13:45 +0000)
committerPaul Hoad <mydeveloperday@gmail.com>
Sun, 29 Sep 2019 13:45:38 +0000 (13:45 +0000)
commit83476b813e27f719139c5776d7eca35913363eb2
tree01819a8629a16eae688fbd1c1736d3b5807003f5
parent72b544e656b643135246c15cb334d09dca9851ac
[clang-format] Reference qualifiers in member templates causing extra indentation.

Summary:
The following code

```
struct f {
  template <class T>
  void bar() && noexcept {}
};
```

will be formatted to the following with LLVM style, and
`AlwaysBreakTemplateDeclarations: Yes`

```
struct f {
  template <class T>
      void bar() && noexcept {}
};
```

The indentation of the `void bar()` line is wrong.

Reviewers: klimek, owenpan, krasimir, timwoj, MyDeveloperDay

Reviewed By: klimek, MyDeveloperDay

Subscribers: MyDeveloperDay, ilya-biryukov, llvm-commits, cfe-commits

Patch By: AndWass

Tags: #clang-format, #clang, #llvm

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

llvm-svn: 373165
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp