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: unassignedclangb...@nondot.org
          Reporter: giulio.euli...@cern.ch
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to