[clang] [analyzer] Remove getRegionName from LifetimeModeling and its dependent checkers (PR #214245)
Balázs Benics via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 7 00:14:01 PDT 2026
================
@@ -71,7 +71,8 @@ void DanglingPtrDeref::reportUseAfterScope(const MemRegion *Region,
CheckerContext &C) const {
auto BR = std::make_unique<PathSensitiveBugReport>(
BugMsg,
- (llvm::Twine("Use of ") + lifetime_modeling::getRegionName(Region) +
+ (llvm::Twine("Use of ") +
+ Region->getDescriptiveName(/*UseQuotes=*/true, /*AllowFallback=*/true) +
" after its lifetime ended."),
N);
----------------
steakhal wrote:
You are on point that I care about quality messages.
I dont care of how we achieve that.
https://github.com/llvm/llvm-project/pull/214245
More information about the cfe-commits
mailing list