[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:10 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: maybe document that it returns a number of added attributes?
https://github.com/llvm/llvm-project/pull/107627
More information about the cfe-commits
mailing list