[RFC PATCH] gdb: introduce xfer_partial_ctx object

John Baldwin jhb@FreeBSD.org
Mon Aug 17 16:03:27 GMT 2020


On 8/16/20 2:45 PM, Simon Marchi wrote:
> On 2020-08-15 12:26 p.m., John Baldwin wrote:
>> I think the idea is fine.  In some places you can perhaps avoid auto if
>> you just pass xfer_partial_ctx::foo () directly as a function argument.
> 
> Right, I was probably trying to avoid extra long/wrapped lines.  I thought
> "auto" was ok here, because the type name is already mentioned on the line
> (although one has to know that the return type of the "make_*" static method
> is also xfer_partial_ctx, that's not necessarily obvious).

To be clear, I do think these places would be an "ok" use of auto given our
other discussions on that topic as a larger group.

-- 
John Baldwin


More information about the Gdb-patches mailing list