You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
Extended Description
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);
The text was updated successfully, but these errors were encountered: