<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div class="">On Feb 27, 2015, at 9:19 AM, David Blaikie <<a href="mailto:dblaikie@gmail.com" class="">dblaikie@gmail.com</a>> wrote:</div></div><blockquote type="cite" class=""><div class="gmail_quote">On Fri, Feb 27, 2015 at 5:02 AM, Anders Rönnholm <span dir="ltr" class=""><<a href="mailto:Anders.Ronnholm@evidente.se" target="_blank" class="">Anders.Ronnholm@evidente.se</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div lang="SV" link="blue" vlink="purple" class=""><div class=""><p class="MsoNormal"><span class="" style="font-size: 10pt; font-family: Tahoma, sans-serif;">Hello!<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span class="" style="font-size: 10pt; font-family: Tahoma, sans-serif;"> <u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span class="" style="font-size: 10pt; font-family: Tahoma, sans-serif;">I would like to develop more checkers that detect when null is passed to standard functions that don't allow null.<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span class="" style="font-size: 10pt; font-family: Tahoma, sans-serif;"> <u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span class="" style="font-size: 10pt; font-family: Tahoma, sans-serif;">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.<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span class="" style="font-size: 10pt; font-family: Tahoma, sans-serif;"> <u class=""></u><u class=""></u></span></p><div class=""><span class="" style="font-size: 10pt; font-family: Tahoma, sans-serif;"><br class=""></span></div></div></div></blockquote></div></blockquote><div><blockquote type="cite" class=""><div class=""><br class=""></div><div class=""><div dir="ltr" class="">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)<br class=""></div></div></blockquote><div><br class=""></div>+1.</div><div><br class=""></div><div>— Marshall</div><div><br class=""></div><div>P.S.<span class="Apple-tab-span" style="white-space:pre">       </span>If you send me a list, I will work on it.</div></body></html>