[cfe-dev] TypePrinter and const Type vs Type const
Vane, Edwin
edwin.vane at intel.com
Tue Mar 19 07:53:11 PDT 2013
Hi,
Currently, given a type for something like:
const int *i = 0;
the type printer will return something like:
int const*
I'm looking to use the type printer in generating replacements in a clang tool but the resulting output will break most projects' style. So:
1) Would anybody object to a patch on TypePrinter to fix this behaviour, perhaps controlled by a PrintingPolicy flag?
2) Is clang-format going to handle this piece of style one day?
3) If yes to #2 maybe it's not worth the effort to improve TypePrinter?
--
Edwin Vane
Software Developer
Intel of Canada, Inc.
More information about the cfe-dev
mailing list