You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cf30450
Browse filesBrowse the repository at this point in the historyBrowse files
Fix ineffective LEGACY_NODELETE annotations on function templates and explicit conversion operators
https://bugs.webkit.org/show_bug.cgi?id=327985
Reviewed by Anne van Kesteren.
Re-running the reverse no-delete static analysis after the recent NODELETE annotation patches revealed
two cases where LEGACY_NODELETE was present but not honored by the checker:
1. Function templates with a separate declaration: annotating only the declaration (in a header or as a
forward declaration) did not suppress the per-instantiation warnings. The annotation also needs to
be on the out-of-line definition, so this patch adds it there.
2. Explicit conversion operators: `explicit LEGACY_NODELETE operator bool()` is accepted by the compiler
but ignored by the checker, while `operator T LEGACY_NODELETE ()` is honored. This patch moves the
annotation to after the conversion type.
No new tests since there should be no behavioral changes.
* Source/WTF/wtf/MediaTime.h:
* Source/WTF/wtf/URLParser.cpp:
(WTF::URLParser::takesTwoAdvancesUntilEnd):
(WTF::URLParser::checkLocalhostCodePoint):
(WTF::URLParser::isAtLocalhost):
(WTF::URLParser::parseIPv4Piece):
(WTF::URLParser::parseIPv4PieceInsideIPv6):
(WTF::URLParser::parseIPv4AddressInsideIPv6):
* Source/WebCore/dom/Node.cpp:
(WebCore::commonInclusiveAncestor):
(WebCore::treeOrder):
* Source/WebCore/html/HTMLAttachmentElement.cpp:
(WebCore::AttachmentEvent::operator bool LEGACY_NODELETE const):
(WebCore::AttachmentEvent::operator bool const): Deleted.
* Source/WebCore/layout/integration/inline/InlineIteratorLineBox.h:
* Source/WebCore/platform/DateComponents.cpp:
(WebCore::DateComponents::parseYear):
(WebCore::DateComponents::parseMonth):
(WebCore::DateComponents::parseDate):
(WebCore::DateComponents::parseWeek):
(WebCore::DateComponents::parseTime):
(WebCore::DateComponents::parseDateTimeLocal):
* Source/WebCore/platform/audio/cocoa/AudioFileReaderCocoa.mm:
(WebCore::AudioBufferListHolder::operator bool LEGACY_NODELETE const):
(WebCore::AudioBufferListHolder::operator bool const): Deleted.
* Source/WebCore/platform/graphics/filters/software/FECompositeSoftwareArithmeticApplier.cpp:
(WebCore::FECompositeSoftwareArithmeticApplier::computePixels):
(WebCore::FECompositeSoftwareArithmeticApplier::computePixelsUnclamped):
* Source/WebCore/rendering/HitTestLocation.cpp:
(WebCore::HitTestLocation::intersectsRect const):
* Source/WebCore/style/calc/StyleCalculationTree+Copy.cpp:
* Source/WebCore/style/calc/StyleCalculationTree+Substitution.cpp:
(WebCore::Style::Calculation::mapLeaves):
* Source/WebCore/svg/SVGPathStringViewSource.cpp:
(WebCore::SVGPathStringViewSource::parse):
Canonical link: https://commits.webkit.org/324090@main
0 commit comments