[webkit-dev] on coding-style

Benjamin Poulain benjamin at webkit.org
Fri Apr 12 15:41:17 PDT 2013


On Fri, Apr 12, 2013 at 3:33 PM, Karen Shaeffer <shaeffer at neuralscape.com>wrote:
>
> Was reading the coding-style documentation. Have just one question
> concerning
> C++ null pointer value. Quoting the coding-style docs, "In C++, the null
> pointer
> value should be written as 0."
>
> My question is: Doesn't xcode clang now support features like nullptr?
> Shouldn't
> the coding-style documentation be updated to use nullptr?
>

The problem is the variety of compilers used by the various ports (WebKit
is also used on Windows, Linux, Solaris, etc.), not all of them supports
nullptr.

You can already use nullptr with some types (RefPtr, OwnPtr, etc). That is
thanks to a hack in Source/WTF/wtf/NullPtr.h

Cheers,
Benjamin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20130412/14c10610/attachment.html>


More information about the webkit-dev mailing list