[clang] [clang][analyzer] Model function addresses in constant initializers (PR #217608)
Balázs Benics via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 21 08:47:37 PDT 2026
================
@@ -0,0 +1,80 @@
+// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection \
+// RUN: -analyze-function=test_function_pointer_forms -verify=forms %s
+// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection \
+// RUN: -analyze-function=test_mutable_pointer -verify=mutable %s
+// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection \
+// RUN: -analyze-function=test_no_false_positive -verify=fp %s
+
+void clang_analyzer_checkInlined(int);
+void clang_analyzer_eval(int);
+
+typedef void (*callback)(unsigned);
----------------
steakhal wrote:
Usually types are UpperCamelCased in LLVM.
https://github.com/llvm/llvm-project/pull/217608
More information about the cfe-commits
mailing list