[clang] [clang][analyzer] Model function addresses in constant initializers (PR #217608)

Balázs Benics via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 24 23:59:18 PDT 2026


================
@@ -0,0 +1,64 @@
+// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection \
+// RUN:   -verify %s
+
+void clang_analyzer_checkInlined(bool);
+void clang_analyzer_eval(bool);
+
+typedef void (*Callback)(unsigned);
+typedef void (&CallbackRef)(unsigned);
----------------
steakhal wrote:

For C++ files it's probably more natural to use `using` over `typedef`.

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


More information about the cfe-commits mailing list