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

Daniel Jasper djasper at google.com
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 gmail.com> 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:
> 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).
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131127/8fba5218/attachment.html>


More information about the cfe-commits mailing list