[clang] [analyzer] Improve UseAfterLifetimeEnd checker's diagnostic with descriptive names and value tracking (PR #212158)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 30 05:24:42 PDT 2026
================
@@ -77,12 +86,12 @@ void caller_six() {
int odd = 55;
int &s = fn(even, odd);
- clang_analyzer_dumpLifetimeOriginsOf(s); // expected-warning {{Origin &odd bound to odd}}
+ clang_analyzer_dumpLifetimeOriginsOf(s);
+ // expected-warning at -1 {{Origin &odd bound to odd}}
----------------
isuckatcs wrote:
Nit: don't we want the `'...'` around the region? E.g.: `Origin '&odd' bound to 'odd'`.
https://github.com/llvm/llvm-project/pull/212158
More information about the cfe-commits
mailing list