[Webkit-unassigned] [Bug 180042] check-webkit-style should detect missing WTF_MAKE_ISO_ALLOCATED/WTF_MAKE_ISO_ALLOCATED_IMPL macros

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 27 10:12:48 PST 2017


https://bugs.webkit.org/show_bug.cgi?id=180042

--- Comment #1 from David Kilzer (:ddkilzer) <ddkilzer at webkit.org> ---
One way to do this would be to match on class name (since we want all Render* classes to opt into ISO heaps), but that won't work if other classes start opting in as well.

A better approach may be to figure out how to preprocess the header file (thus pulling in the base class declaration), and then check the base class declaration of the new/modified subclass to see if it's missing the WTF_MAKE_ISO_ALLOCATED macro.

To check for the need for the WTF_MAKE_ISO_ALLOCATED_IMPL macro, we just need to check that the header file contains a WTF_MAKE_ISO_ALLOCATED macro within its class declaration.

Obviously, the checker should check for both conditions: (a) using a macro when it shouldn't be used, and (b) omitting a macro when it should be used.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171127/091b44fa/attachment.html>


More information about the webkit-unassigned mailing list