Patch for clang-format to allow references and pointers to bind differently
Ben Longbons
brlongbons at gmail.com
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: https://gist.github.com/o11c/7506460
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).
-------------- 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: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131126/5f378aa4/attachment.bin>
More information about the cfe-commits
mailing list