[clang] Propagate lifetimebound from formal parameters to those in the canonical declaration and use that for analysis (PR #107627)
Ilya Biryukov via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 10 08:55:09 PST 2024
================
@@ -3227,6 +3227,41 @@ void Sema::mergeDeclAttributes(NamedDecl *New, Decl *Old,
if (!foundAny) New->dropAttrs();
}
+template <class T>
+static unsigned propagateAttribute(ParmVarDecl *toDecl,
----------------
ilya-biryukov wrote:
NIT: rename to `ToDecl` to match LLVM naming rules.
I'd also just call them `To` and `From`, the types are spelled out explicitly anyway, `Decl` suffix seems redundant. But up to you.
https://github.com/llvm/llvm-project/pull/107627
More information about the cfe-commits
mailing list