-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Reduce scope of WTF_ALLOW_UNSAFE_BUFFER_USAGE macros in WTF::BitVector #47306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce scope of WTF_ALLOW_UNSAFE_BUFFER_USAGE macros in WTF::BitVector #47306
Conversation
EWS run on previous version of this PR (hash 76ff52e) |
Source/WTF/wtf/BitVector.h
Outdated
WTF_ALLOW_UNSAFE_BUFFER_USAGE_BEGIN | ||
return !!(bits()[bit / bitsInPointer()] & (static_cast<uintptr_t>(1) << (bit & (bitsInPointer() - 1)))); | ||
WTF_ALLOW_UNSAFE_BUFFER_USAGE_END |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Surprised by the indentation. I’d expect either fully left aligned, or nested inside the braces, perhaps with the code indented. Haven’t seen this style before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll double check I thought this was the style we were using. It's also possible WTF_ALLOW_UNSAFE_BUFFER_USAGE
macros are currently inconsistent with other macros in this regard.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh never mind, it's hard reading a diff. This is meant to be fully left-aligned, always. I'll fix.
76ff52e
to
06e60a3
Compare
EWS run on current version of this PR (hash 06e60a3) |
https://bugs.webkit.org/show_bug.cgi?id=295109 Reviewed by Darin Adler. * Source/WTF/wtf/BitVector.cpp: * Source/WTF/wtf/BitVector.h: Canonical link: https://commits.webkit.org/296751@main
06e60a3
to
6852d68
Compare
Committed 296751@main (6852d68): https://commits.webkit.org/296751@main Reviewed commits have been landed. Closing PR #47306 and removing active labels. |
6852d68
06e60a3
🛠 win🧪 wpe-wk2🧪 win-tests🧪 ios-wk2-wpt🧪 api-ios🧪 mac-AS-debug-wk2🧪 gtk-wk2🧪 api-gtk🛠 playstation