[webkit-changes] [WebKit/WebKit] b6841b: Add script for finding feature defines

Don Olmstead noreply at github.com
Thu Dec 8 16:16:44 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b6841b91605ea8d2efd8dd163cf9560e5f55e215
      https://github.com/WebKit/WebKit/commit/b6841b91605ea8d2efd8dd163cf9560e5f55e215
  Author: Don Olmstead <don.olmstead at sony.com>
  Date:   2022-12-08 (Thu, 08 Dec 2022)

  Changed paths:
    A Tools/Scripts/find-feature-flags
    A Tools/Scripts/webkitpy/featuredefines/__init__.py
    A Tools/Scripts/webkitpy/featuredefines/matcher.py
    A Tools/Scripts/webkitpy/featuredefines/matcher_unittest.py
    A Tools/Scripts/webkitpy/featuredefines/search.py

  Log Message:
  -----------
  Add script for finding feature defines
https://bugs.webkit.org/show_bug.cgi?id=245290

Reviewed by Darin Adler.

Adds a script for determining what feature defines (ENABLE, USE, HAVE)
are present in portions of WebKit code. As an example the script can
search all native code for all `ENABLE(flag)` and report back a full
listing. In addition it can also find differences between sections of
code which can be used to find stale build options.

* Tools/Scripts/find-feature-flags: Added.
* Tools/Scripts/webkitpy/featuredefines/__init__.py: Added.
* Tools/Scripts/webkitpy/featuredefines/matcher.py: Added.
* Tools/Scripts/webkitpy/featuredefines/matcher_unittest.py: Added.
* Tools/Scripts/webkitpy/featuredefines/search.py: Added.

Canonical link: https://commits.webkit.org/257596@main




More information about the webkit-changes mailing list