r240146 - Introduce type nullability specifiers for C/C++.

Joerg Sonnenberger joerg at britannica.bec.de
Tue Jun 23 08:54:40 PDT 2015


On Fri, Jun 19, 2015 at 05:51:06PM -0000, Douglas Gregor wrote:
> Author: dgregor
> Date: Fri Jun 19 12:51:05 2015
> New Revision: 240146
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=240146&view=rev
> Log:
> Introduce type nullability specifiers for C/C++.
> 
> Introduces the type specifiers __nonnull, __nullable, and
> __null_unspecified that describe the nullability of the pointer type
> to which the specifier appertains. Nullability type specifiers improve
> on the existing nonnull attributes in a few ways:

I'm pretty sure it has been said before, but please don't introduce any
keywords like that in the namespace usually used by system headers
already. That's really just asking for trouble.

Joerg



More information about the cfe-commits mailing list