[llvm-bugs] [Bug 37708] New: Wanted: AllowAllParametersOfDefinitionOnNextLine
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jun 6 10:15:14 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=37708
Bug ID: 37708
Summary: Wanted: AllowAllParametersOfDefinitionOnNextLine
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 want to preserve this:
auto operator|( \
Range const& range, \
name##_view_adapter_t< Args... > const& adapter ) \
// definition
...but there seems to be no option to do so, as there is for definitions.
Instead I am stuck with clang-format producing:
auto operator|( Range const& range, \
name##_view_adapter_t< Args... > const& adapter ) \
// definition
Despite the subject, it probably makes more sense to refactor
AllowAllParametersOfDeclarationOnNextLine into AllowAllParametersOnNextLine
with possible values 'definition', 'declaration', 'yes'/'always'/etc., and
'never'.
--
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/8ffc6585/attachment.html>
More information about the llvm-bugs
mailing list