[all-commits] [llvm/llvm-project] 587bec: [WebKit checkers] Disallow operator delete in a tr...
Ryosuke Niwa via All-commits
all-commits at lists.llvm.org
Sat Mar 7 01:43:01 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 587becb624fa32329109f1fe53c6b7d4e93eaf81
https://github.com/llvm/llvm-project/commit/587becb624fa32329109f1fe53c6b7d4e93eaf81
Author: Ryosuke Niwa <rniwa at webkit.org>
Date: 2026-03-07 (Sat, 07 Mar 2026)
Changed paths:
M clang/lib/StaticAnalyzer/Checkers/WebKit/PtrTypesSemantics.cpp
M clang/test/Analysis/Checkers/WebKit/nodelete-annotation.cpp
Log Message:
-----------
[WebKit checkers] Disallow operator delete in a trivial context. (#185122)
This PR changes the "trivial function analysis" to disallow `operator
delete` in a "trival" or "nodelete" function or statement. Without this,
the delete operator could deallocate memory for a reference counted
objects, etc...
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list