On Tue, Feb 12, 2013 at 12:23 AM, Daniel Jasper <[email protected]> wrote:
>
>   The patch looks good, the surrounding doesn't ;-). We (I) seriously need to 
> clean up the spaceRequired..() methods. Doesn't really make sense to test for 
> star and amp directly as we already know what type of token we are dealing 
> with. But I will do this in a follow-up patch.
>
>
> ================
> Comment at: lib/Format/TokenAnnotator.cpp:939
> @@ -934,3 +938,3 @@
>             (Left.isNot(tok::star) && Left.isNot(tok::amp) &&
> -            !Style.PointerBindsToType);
> +            Left.isNot(tok::l_paren) && !Style.PointerBindsToType);
>    if (Left.is(tok::amp) || Left.is(tok::star))
> ----------------
> How is this connected to the rest of the change?

This is for function pointer types: In "int(*)()", the "*" is now
marked as TT_PointerOrReference (which I think is good), but there
should be no space in front of pointer/reference markers if they
directly follow a "(".

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

Reply via email to