[llvm-bugs] [Bug 25355] New: AlignConsecutiveAssignments misbehaves for special member functions
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Oct 30 08:28:41 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=25355
Bug ID: 25355
Summary: AlignConsecutiveAssignments misbehaves for special
member functions
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: gonzalobg88 at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Classification: Unclassified
The following code is aligned as:
struct A {
constexpr A& operator=(A const&) = default;
constexpr A(A&&) = default;
};
which makes no sense. If anything it should probably be aligned at the "=
default;":
struct A {
A& operator=(A const&) = default;
A(A&&) = default;
};
but I think that AlignConsecutiveAssignments should bail out in this case since
nothing is being assigned here.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151030/192f78f5/attachment.html>
More information about the llvm-bugs
mailing list