[clang] [Webkit Checkers] Introduce a Webkit checker for memory unsafe casts (PR #114606)

Ryosuke Niwa via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 19 01:03:02 PST 2024


================
@@ -0,0 +1,176 @@
+// RUN: %clang_analyze_cc1 -analyzer-checker=alpha.webkit.MemoryUnsafeCastChecker -verify %s
+
+class Base { };
----------------
rniwa wrote:

Can we add tests for static_cast non-pointer types and make sure they don't emit warnings?

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


More information about the cfe-commits mailing list