Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 76f61457be347eefc0c0ae1c42d5fb6816b2b683
https://github.com/WebKit/WebKit/commit/76f61457be347eefc0c0ae1c42d5fb6816b2b683
Author: Fady Farag <[email protected]>
Date: 2026-03-02 (Mon, 02 Mar 2026)
Changed paths:
M Source/WTF/wtf/Variant.h
Log Message:
-----------
Add C++17 [[nodiscard]] to WTF::Variant functions
https://bugs.webkit.org/show_bug.cgi?id=307279
rdar://169926855
Reviewed by Darin Adler.
libc++ marks std::variant's functions as [[nodiscard]].
Apply the same to WTF::Variant to warn against discarding return values.
LLVM/libc++ docs:
https://libcxx.llvm.org/CodingGuidelines.html#apply-nodiscard-where-relevant
* Source/WTF/wtf/Variant.h:
(mpark::get):
(std::get):
Canonical link: https://commits.webkit.org/308474@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications