[llvm-bugs] [Bug 31649] New: Alignment support for array initializer

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jan 15 09:05:12 PST 2017


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

            Bug ID: 31649
           Summary: Alignment support for array initializer
           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

It would be nice if it would be possible to align array initialization such as
int m[][2] = {
  {10, 2},
  { 1, 2}};
the same was as it is already possible to enable alignment for declaration and
assignment. This would preserve the alignment in the example. As is, it
produces (with ColumnLimit=0):
int m[][2] = {
  {10, 2},
  {1, 2}};

-- 
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/20170115/b046fc5b/attachment.html>


More information about the llvm-bugs mailing list