[clang] [analyzer] Match dangling subobjects by their base region in DanglingPtrDeref (PR #211552)
Gábor Horváth via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 23 07:22:55 PDT 2026
================
@@ -112,3 +112,56 @@ void inlined_callee_single_report() {
// expected-note at -1 {{Calling 'deref_param'}}
(void)r;
}
+
+struct MyBuffer {
----------------
Xazax-hun wrote:
Could we have a test case with a non-array field, maybe even nested fields, just in case? Or a struct as the array's element type.
https://github.com/llvm/llvm-project/pull/211552
More information about the cfe-commits
mailing list