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

Martin Liška mliska at suse.cz
Tue Aug 5 06:29:37 PDT 2014

    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,

More information about the cfe-dev mailing list