[llvm-bugs] [Bug 38564] New: Inconsistent formatting for lambda function return type

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 14 07:06:23 PDT 2018


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

            Bug ID: 38564
           Summary: Inconsistent formatting for lambda function return
                    type
           Product: clang
           Version: 5.0
          Hardware: PC
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: giulio.eulisse at cern.ch
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

Depending of whether a lambda capture is there or not, lambda function return
types get inconsistently formatted by clang-format. E.g.:

int main() {
  auto a = []() -> void {};
  auto b = [a = 1]()->void{};
  return 0;
}

-- 
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/20180814/e57b27da/attachment.html>


More information about the llvm-bugs mailing list