Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 868af336a43ad2887c8197cd8272de08972dc9fd
https://github.com/WebKit/WebKit/commit/868af336a43ad2887c8197cd8272de08972dc9fd
Author: Ryosuke Niwa <[email protected]>
Date: 2026-02-06 (Fri, 06 Feb 2026)
Changed paths:
M Source/WTF/wtf/Compiler.h
M Source/WebCore/dom/Node.h
M Tools/Scripts/build-and-analyze
Log Message:
-----------
Add the support for [[clang::annotate_type("webkit.nodelete")]] and use it in
DOM code
https://bugs.webkit.org/show_bug.cgi?id=307156
Reviewed by Chris Dumez.
This PR introduces the support for specifying new clang specific type attribute
[[clang::annotate_type("webkit.nodelete")]] which denotes a given function is
"trivial"
and doesn't trigger a destruction of an object.
This PR also enables alpha.webkit.NoDeleteChecker which verifies that the
function
with this annotation is actually "trivial".
Finally, this PR also deploys this new annotation in some DOM code as an
example.
* Source/WTF/wtf/Compiler.h:
* Source/WebCore/dom/Node.h:
* Tools/Scripts/build-and-analyze:
Canonical link: https://commits.webkit.org/306948@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications