[cfe-dev] Null pointer to standard functions
Marshall Clow
mclow.lists at gmail.com
Mon Mar 2 13:05:10 PST 2015
On Feb 27, 2015, at 9:19 AM, David Blaikie <dblaikie at gmail.com> wrote:
> On Fri, Feb 27, 2015 at 5:02 AM, Anders Rönnholm <Anders.Ronnholm at evidente.se <mailto:Anders.Ronnholm at evidente.se>> wrote:
> Hello!
>
>
>
> I would like to develop more checkers that detect when null is passed to standard functions that don't allow null.
>
>
>
> There is already a checker that does this for functions that has non null attributes (NonNullParamChecker). Other functions such as fopen does not have that attribute so they need a separate checker unless the correct way is to add the nonnull attribute to these functions.
>
>
>
>
>
> Would it be easier/nicer to add the attribute to the standard library? (The attribute is supported by GCC, I believe, so it wouldn't be a matter of just adding it for Clang's sake)
+1.
— Marshall
P.S. If you send me a list, I will work on it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150302/7212841f/attachment.html>
More information about the cfe-dev
mailing list