[webkit-changes] [WebKit/WebKit] b831bf: Allow fixed width integer types as bit fields

Tadeu Zagallo noreply at github.com
Mon Feb 27 05:18:33 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b831bf8d6468696e8854fc8da2c24d426342eb86
      https://github.com/WebKit/WebKit/commit/b831bf8d6468696e8854fc8da2c24d426342eb86
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-02-27 (Mon, 27 Feb 2023)

  Changed paths:
    M Tools/Scripts/webkitpy/style/checkers/cpp.py
    M Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py

  Log Message:
  -----------
  Allow fixed width integer types as bit fields
https://bugs.webkit.org/show_bug.cgi?id=252475
rdar://105593556

Reviewed by David Kilzer.

Currently, the style checker complains about uint8_t and friends as bit fields,
claiming that it's not an unsigned integral type. This patch updates the rule
to accept all intN_t and uintN_t types.

* Tools/Scripts/webkitpy/style/checkers/cpp.py:
(check_language):
* Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py:
(CppStyleTest):

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




More information about the webkit-changes mailing list