[llvm-bugs] [Bug 37711] New: Add option to break before trailing return type
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jun 6 10:32:09 PDT 2018
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: unassignedclangbugs at nondot.org
Reporter: matthew.woehlke at kitware.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180606/18eadf26/attachment.html>
More information about the llvm-bugs
mailing list