[cfe-commits] [Patch] Warn about incompatible typedef of standard library type

Eli Friedman eli.friedman at gmail.com
Tue Dec 6 12:01:13 PST 2011


On Tue, Dec 6, 2011 at 8:41 AM, Hans Wennborg <hans at chromium.org> wrote:
> Hi all,
>
> The attached patch adds a warning for incompatible typedefs of
> standard library types (such as intmax_t, size_t, etc.).
>
> I'm not entirely sure whether this is worthwhile (it didn't find
> anything interesting in Chromium at least), so I'm just throwing it
> out there. Let me know what you think.

It's pretty much worthless as-is; normally, the typedef for size_t etc
is in a system header, and the warning won't trigger there.

-Eli



More information about the cfe-commits mailing list