[clang] [LifetimeSafety] Revamp how accesses and uses are handled (PR #225799)
Gábor Horváth via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 24 06:06:20 PDT 2026
================
@@ -298,6 +298,8 @@ OriginList *OriginManager::getOrCreateList(const Expr *E) {
// `p` points to.
if (doesDeclHaveStorage(ReferencedDecl)) {
Head = createNode(E, QualType{});
+ // `this->f` reaches its field through `this` instead of naming it.
+ AllOrigins.back().NamesDeclStorage = isa<DeclRefExpr>(E);
----------------
Xazax-hun wrote:
Plumbed the flag through the ctors and factories.
https://github.com/llvm/llvm-project/pull/225799
More information about the cfe-commits
mailing list