[llvm-bugs] [Bug 33697] New: clang-format aligns "=" of "operator=" with "= deleted" if copy assignment operator is deleted

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jul 6 03:31:30 PDT 2017


            Bug ID: 33697
           Summary: clang-format aligns "=" of "operator=" with "=
                    deleted" if copy assignment operator is deleted
           Product: clang
           Version: 4.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: frank.f.sommer at daimler.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

Created attachment 18757
  --> https://bugs.llvm.org/attachment.cgi?id=18757&action=edit
clang-format configuration file

If a long class name leads to a line break within the declaration of a deleted
copy assignment operator the “=” sign of "operator=" is aligned with the “=” of
the “= delete”. The following section shows the formatted output:


class SomeClassWithARatherLongNameWhichBreaksTheColumnLimit
  virtual ~SomeClassWithARatherLongNameWhichBreaksTheColumnLimit();

      const SomeClassWithARatherLongNameWhichBreaksTheColumnLimit& other) =
  SomeClassWithARatherLongNameWhichBreaksTheColumnLimit& operator         =(
      const SomeClassWithARatherLongNameWhichBreaksTheColumnLimit& other) =

Attached you find the clang-format configuration file we used for formatting.

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/20170706/48f02afd/attachment.html>

More information about the llvm-bugs mailing list