[clang] [analyzer] Match dangling subobjects by their base region in DanglingPtrDeref (PR #211552)
Benedek Kaibas via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 26 09:55:24 PDT 2026
================
@@ -112,3 +112,105 @@ void inlined_callee_single_report() {
// expected-note at -1 {{Calling 'deref_param'}}
(void)r;
}
+
+struct MyBuffer {
+ char buffer[8];
+};
+struct MyStruct { int x; };
+struct Inner { int x; };
+struct Outer { struct Inner inner; };
----------------
benedekaibas wrote:
I just forgot to remove the `struct` keyword at that line. Removed here: [c6b5fb0](https://github.com/llvm/llvm-project/pull/211818/commits/c6b5fb0873b33217fcf485be0f4288a7e26ca84c)
https://github.com/llvm/llvm-project/pull/211552
More information about the cfe-commits
mailing list