[cfe-dev] clang-format: space after cast and sizeof for GNU coding style

Daniel Jasper djasper at google.com
Tue Aug 5 06:44:21 PDT 2014


http://llvm.org/PR19982.


On Tue, Aug 5, 2014 at 3:29 PM, Martin Liška <mliska at suse.cz> wrote:

> Hello,
>    I've noticed -style=gnu does not place single space after casts as can
> be seen in: http://www.gnu.org/prep/standards/standards.html
> if you find: "if ((foo = (char *) malloc (sizeof *foo)) == 0)"
>
> What do you think about that? Maybe, similar behavior should be followed
> for 'static_cast<struct *>' and 'sizeof', where the spaces are missing too?
>
> Thank you,
> Martin
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140805/a46bab8e/attachment.html>


More information about the cfe-dev mailing list