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

            Bug ID: 37711
           Summary: Add option to break before trailing return type
           Product: clang
           Version: 6.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangb...@nondot.org
          Reporter: matthew.woeh...@kitware.com
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@lists.llvm.org

I'm having a number of issues trying to get clang-format to behave reasonably
on
https://github.com/Kitware/kwiver/blob/303a11ebb43c020ab8e48b6ef70407b460dba46b/vital/range/defs.h,
using
https://gist.github.com/mwoehlke-kitware/d8ef9466df5096a035059938aef2948d.

For this RFE, specifically, I would like an option to force a break after a the
closing brace of a function's parameter list and a trailing return type
specifier. For example:

  // Current (unwanted)
  static auto end_helper( Range const& range ) -> decltype( end( range ) )

  // Desired
  static auto end_helper( Range const& range )
    -> decltype( end( range ) )

-- 
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