[PATCH] D11948: Add some macros to abstract marking of parameters as "not null", and use them in <cstring>
Marshall Clow via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 13 07:16:00 PDT 2015
On Wed, Aug 12, 2015 at 4:03 PM, Dan Albert <danalbert at google.com> wrote:
> My testing was varied. I could not get GCC or clang to optimize it away
> for Linux, but both did for ARM Android.
>
Then I don't understand your objection to this change, then.
On your platform, the effect of this change is (therefore) a compile-time
warning when you pass (a constant) NULL to a set of functions that are
documented to require non-null parameters.
-- Marshall
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150813/cd9145e7/attachment.html>
More information about the cfe-commits
mailing list