On Fri, Apr 27, 2012 at 2:29 PM, Nico Weber <[email protected]> wrote:

> Hi,
>
> the attached patch changes
>
>  test.cc:4:11: error: unexpected ':' in nested name specifier
>    return A:a;
>            ^
>            ::
>  1 error generated.
>
> to
>
>  test.cc:4:11: error: unexpected ':' in nested name specifier, did
> you mean '::'?
>    return A:a;
>            ^
>            ::
>  1 error generated.
>
>
> True, there's a fixit for the '::' already, but it always takes me a
> second to see that. One coworker asked for the same change. Is this
> change ok? (The diagnostic is only used in one place, and always shows
> the '::' fixit.)


Hi Nico,

This seems fine to me. It's easy to not notice a small fixit like this, and
we already have plenty of 'did you mean' diagnostics with matching fixits.
Please use ';' rather than ',' before the 'did you mean' to match the
existing diagnostics; LGTM other than that.

Thanks!
Richard
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to