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

Ben Longbons brlongbons at
Tue Nov 26 14:42:36 PST 2013

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.


P.S. Please make sure to reply-all, I'm not subscribed (I hate the
"all or nothing" aspect of mailing lists).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Allow-different-attachment-policy-for-pointer-and-re.patch
Type: text/x-patch
Size: 6837 bytes
Desc: not available
URL: <>

More information about the cfe-commits mailing list