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

Hans Wennborg hans at chromium.org
Wed Dec 7 02:39:51 PST 2011


On Tue, Dec 6, 2011 at 10:29 PM, Eli Friedman <eli.friedman at gmail.com> wrote:
>> 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.
>
> Does this actually happen in practice?
>
>> I don't think it is intended to
>> warn when the system header happens to be broken.
>
> I've seen broken system headers multiple times on the cfe-dev; I've
> never seen users explicitly declare size_t in real-world code.
>
> -Eli

Ok, this might not be worth bothering with, then.

Thanks,
Hans



More information about the cfe-commits mailing list