[llvm-bugs] [Bug 31681] New: Align Compound assignment

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jan 18 12:49:58 PST 2017


            Bug ID: 31681
           Summary: Align Compound assignment
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: Roland.Schulz at Intel.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org
    Classification: Unclassified

xxxxx = 2;
x     = 5;
xxx  += 4;

With: AlignConsecutiveAssignments: true

Currently clang-format produces:
xxxxx = 2;
x     = 5;
xxx += 4;

Thus it removes the alignment of the compound assignment. It would be nice if
AlignConsecutiveAssignments also applied to compound assignments.

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/20170118/f95ed2bc/attachment.html>

More information about the llvm-bugs mailing list