[webkit-dev] NeverNull<T>

Pierre d'Herbemont pdherbemont at gmail.com
Wed Jul 29 00:40:05 PDT 2009


On Jul 28, 2009, at 3:25 PM, Eric Seidel wrote:

> void doSomething(Foo* foo)
> {
>     ASSERT(foo);
> }

As a side note, gcc should support nonnull attribute even for C++.  
That's a way to get some static analysis for free.

void doSomething(Foo* foo) __attribute__((nonnull));

Pierre.

[1] http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20090729/fb712221/attachment.html>


More information about the webkit-dev mailing list