[llvm-bugs] [Bug 44354] New: No good option for formatting futures

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Dec 19 18:58:33 PST 2019


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

            Bug ID: 44354
           Summary: No good option for formatting futures
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rafael at espindo.la
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

seastar (http://seastar.io/) implements futures is c++. Unfortunately they
don't format nicely with clang-format as the 'then' calls are indented way too
much:

    auto fut = foo()
                   .then([]() {
                       bar();
                   })
                   .then([]() {
                       zed();
                   });

instead of

    auto fut = foo().then([]() {
        bar();
    }).then([]() {
        zed();
    });

-- 
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/20191220/0a120e29/attachment.html>


More information about the llvm-bugs mailing list