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

Darin Adler darin at apple.com
Mon Sep 30 10:50:00 PDT 2013


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


More information about the webkit-dev mailing list