[cfe-commits] [Patch] suggest %zu for size_t args to printf (PR11152)

Ted Kremenek kremenek at apple.com
Mon Oct 17 11:09:09 PDT 2011

Looks great to me.

On Oct 17, 2011, at 1:59 AM, Hans Wennborg wrote:

> Hi all,
> The attached patch is for PR11152.
> It makes PrintfSpecifier::fixType() choose "%zu" for size_t, etc.,
> rather than looking at the underlying type and suggesting "%llu" or
> other platform-specific length modifiers. This is for C99, C1X and
> C++11.
> Please let me know if this is ok to land.
> Thanks,
> Hans
> <printf-fixit.diff>_______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

More information about the cfe-commits mailing list