[llvm-bugs] [Bug 32093] New: Implement formatting of structured bindings.

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Feb 28 07:08:49 PST 2017


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

            Bug ID: 32093
           Summary: Implement formatting of structured bindings.
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: gonzalobg88 at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

Structured bindings should be properly supported in clang-format.

auto [x, y, z] = std::make_tuple(0, 1, 2);

gets reformatted as

auto[x, y, z] = std::make_tuple(0, 1, 2);

Probably want to offer a way to customize this as well.

-- 
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/20170228/07cf48e5/attachment.html>


More information about the llvm-bugs mailing list