Patch for clang-format to allow references and pointers to bind differently

Daniel Jasper djasper at
Wed Nov 27 14:26:19 PST 2013

This does not make any sense to me and I'd vote against putting it into
clang-format. Can you explain the rationale behind this formatting decision?

On Tue, Nov 26, 2013 at 11:42 PM, Ben Longbons <brlongbons at> wrote:

> This patch allows the whitespace attachment for pointers and
> references to be different:
> void pc(char *c);
> void rc(char& c);
> void prc(char *& c);
> A full set of expected outputs for each:
> Note: the formatting in the patch is not optimal, I preferred to make
> the diff more readable in the initial submission.
> -o11c
> P.S. Please make sure to reply-all, I'm not subscribed (I hate the
> "all or nothing" aspect of mailing lists).
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the cfe-commits mailing list