HomePhabricator

[clang-format] Reference qualifiers in member templates causing extra…

Description

[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

Details

Committed
MyDeveloperDaySep 29 2019, 6:45 AM
Reviewer
klimek
Differential Revision
D68072: [clang-format] Reference qualifiers in member templates causing extra indentation.
Branches
Unknown
Tags
Unknown