[clang] [analyzer] Detect leaks of stack addresses via output params, indirect globals 3/3 (PR #105648)
DonĂ¡t Nagy via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 26 11:11:07 PDT 2024
================
@@ -313,7 +321,8 @@ std::optional<std::string> printReferrer(const MemRegion *Referrer) {
if (isa<GlobalsSpaceRegion>(Space))
return "global";
assert(isa<StackSpaceRegion>(Space));
- return "stack";
+ // This case covers top-level and inlined analyses.
+ return "caller";
----------------
NagyDonat wrote:
I like this word choice, it's easier to understand than the old "stack".
https://github.com/llvm/llvm-project/pull/105648
More information about the cfe-commits
mailing list