[llvm-bugs] [Bug 27082] New: want BreakConsecutiveAssignment or BreakMixedAssignment

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Mar 26 00:08:10 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=27082

            Bug ID: 27082
           Summary: want BreakConsecutiveAssignment or
                    BreakMixedAssignment
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: shawn.walker at oracle.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org
    Classification: Unclassified

Given:

int a, b, c, d = 4, e, f;

It would be helpful if there was either some way to split each declaration onto
its own line like this:

int a;
int b;
int c;
int d = 4;
int e;
int f;

...or at the very least, split up the assignments from the declarations:

int a, b, c, e, f;
int d = 4;

Perhaps the names could be BreakConsecutiveAssignment and BreakMixedAssignment
respectively?

-- 
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/20160326/e78fcbfe/attachment.html>


More information about the llvm-bugs mailing list