Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b06c55277c0b6c908a85d9e34106a7b230bede5d
      
https://github.com/WebKit/WebKit/commit/b06c55277c0b6c908a85d9e34106a7b230bede5d
  Author: Chris Dumez <[email protected]>
  Date:   2026-03-30 (Mon, 30 Mar 2026)

  Changed paths:
    M Source/WTF/wtf/OptionSet.h

  Log Message:
  -----------
  OptionSet: Clean up Iterator template, use std::has_single_bit, and make 
all() constexpr
https://bugs.webkit.org/show_bug.cgi?id=311097

Reviewed by Darin Adler.

- Remove unnecessary template parameter from Iterator that shadowed the
  outer StorageType type alias. Iterator is only ever instantiated with
  the enclosing class's StorageType.
- Replace hand-rolled bit-twiddling in hasExactlyOneBitSet() and
  hasOneBitSet() assertions with std::has_single_bit() from <bit>,
  which is already included and used elsewhere in WTF.
- Make all() constexpr, consistent with every other method on OptionSet.
- Drop the now-unused MathExtras.h include.

* Source/WTF/wtf/OptionSet.h:
(WTF::OptionSet::OptionSet):
(WTF::OptionSet::hasExactlyOneBitSet const):
(WTF::OptionSet::all):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to