[cfe-commits] PATCH: Improve err_invalid_use_of_bound_member_func diagnostics

Peter Collingbourne peter at pcc.me.uk
Tue Jan 4 14:08:03 PST 2011


On Tue, Jan 04, 2011 at 01:52:09PM -0800, Matt Beaumont-Gay wrote:
> -      << E->getSourceRange();
> +      << E->getSourceRange()
> +      << FixItHint::CreateInsertion(Loc, "()");

I'm not sure we should do this unless we know that the member function
can be called with zero arguments.

Thanks,
-- 
Peter



More information about the cfe-commits mailing list