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

Chandler Carruth chandlerc at google.com
Tue Dec 6 14:06:52 PST 2011


On Tue, Dec 6, 2011 at 12:01 PM, Eli Friedman <eli.friedman at gmail.com>wrote:

> 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.
>

I think you're missing the (potential) purpose of this: broken user code. I
would imagine this is to catch users who improperly provide their own
typedef rather than including the header. I don't think it is intended to
warn when the system header happens to be broken.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111206/4985e611/attachment.html>


More information about the cfe-commits mailing list