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

Hans Wennborg hans at chromium.org
Mon Oct 17 01:59:50 PDT 2011


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: printf-fixit.diff
Type: text/x-patch
Size: 3935 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111017/0ad329c5/attachment.bin>


More information about the cfe-commits mailing list