]> granicus.if.org Git - clang/commit
[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)
commit868a5a7edd33351fc7810eec11faf5da63ce682d
tree831c07d41159be902e2f9caefc5ce7b5585b68c1
parentbed86ca9cbd125a672ef87e1dcc46b77aa03f988
[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

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