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: unassignedclangb...@nondot.org Reporter: gonzalob...@gmail.com CC: djas...@google.com, kli...@google.com, llvm-bugs@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.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs