[clang] [alpha.webkit.UncountedCallArgsChecker] os_log functions should be treated as safe. (PR #131500)

Ryosuke Niwa via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 17 12:47:00 PDT 2025


================
@@ -695,9 +695,13 @@ RefPtr<RefCounted> object();
 void someFunction(const RefCounted&);
 
 void test2() {
-    someFunction(*object());
+  someFunction(*object());
 }
 
 void system_header() {
   callMethod<RefCountable>(object);
 }
+
+void log(RefCountable* obj) {
+  os_log_msg(os_log_create("WebKit", "DOM"), OS_LOG_TYPE_INFO, "obj: %p next: %p", obj, obj->next());
+}
----------------
rniwa wrote:

Probably not necessary but we could!

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


More information about the cfe-commits mailing list