[clang] [WebKit checkers] Disallow operator delete in a trivial context. (PR #185122)

Balázs Benics via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 6 15:09:23 PST 2026


================
@@ -336,6 +357,7 @@ struct SubData : Data {
 
 void [[clang::annotate_type("webkit.nodelete")]] makeData() {
   RefPtr<Data> constantData[2] = { Data::create() };
+  // expected-warning at -1{{A function 'makeData' has [[clang::annotate_type("webkit.nodelete")]] but it contains code that could destruct an object}}
----------------
steakhal wrote:

What is this report?

https://github.com/llvm/llvm-project/pull/185122


More information about the cfe-commits mailing list