[llvm-bugs] [Bug 31907] New: Add an arity threshhold for binpacking arguments
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Feb 8 14:05:14 PST 2017
https://llvm.org/bugs/show_bug.cgi?id=31907
Bug ID: 31907
Summary: Add an arity threshhold for binpacking arguments
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: dcheng at google.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Classification: Unclassified
When a function has a lot of arguments, binpacking can makes things less
readable. It would be nice if there was an arity threshhold; if you exceed it,
then every argument is on its own line rather than being bin packed.
Here's the code before formatting:
kern_return_t result =
mach_vm_region(mach_task_self(),
reprotection_start,
reprotection_length,
VM_REGION_BASIC_INFO_64,
reinterpret_cast<vm_region_info_t>(&info),
&count,
&unused);
Here's the code after formatting:
kern_return_t result = mach_vm_region(
mach_task_self(), reprotection_start, reprotection_length,
VM_REGION_BASIC_INFO_64, reinterpret_cast<vm_region_info_t>(&info),
&count, &unused);
Here's how it ought to look:
kern_return_t result =
mach_vm_region(mach_task_self(),
reprotection_start,
reprotection_length,
VM_REGION_BASIC_INFO_64,
reinterpret_cast<vm_region_info_t>(&info),
&count,
&unused);
--
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/20170208/baa79bbe/attachment.html>
More information about the llvm-bugs
mailing list