[webkit-dev] Type cast by using toFoo()

Yong Li yong.li.webkit at outlook.com
Mon Sep 30 10:52:14 PDT 2013


Bottom line is turning on RTTI in debug build?
________________________________
From: Darin Adler<mailto:darin at apple.com>
Sent: ‎2013-‎09-‎30 1:50 PM
To: Yong Li<mailto:yong.li.webkit at outlook.com>
Cc: Gyuyoung Kim<mailto:gyuyoung.kim at webkit.org>; Sam Weinig<mailto:weinig at apple.com>; WebKit Development<mailto:webkit-dev at lists.webkit.org>
Subject: Re: [webkit-dev] Type cast by using toFoo()

On Sep 30, 2013, at 9:54 AM, Yong Li <yong.li.webkit at outlook.com> wrote:

>> > Finally I plan to add this toFoo() policy to the WebKit style checker.
>>
>> Can you explain more about this?  How are you going to determine static_casts that are acceptable from ones that aren’t.
>
> I think it can be done by checking the vtable pointer if the classes are virtual.

The style checker runs on source code, so it can’t check things like vtable pointers.

— Darin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20130930/f109ef3f/attachment.html>


More information about the webkit-dev mailing list