[clang] [Lifetime Safety] Highlight lifetimebound calls in alias chain diagnostics (PR #206337)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 6 01:44:11 PDT 2026
================
@@ -30,6 +31,11 @@ namespace clang::lifetimes::internal {
using FactID = utils::ID<struct FactTag>;
+struct LifetimeBoundInfo {
+ const ParmVarDecl *Param = nullptr;
+ bool IsImplicitObject = false;
+};
----------------
NeKon69 wrote:
As a side thought, I think we *could* delete the second parameter, and represent implicit object if `Param` is nullptr, but I am not sure if it will be a good idea (if for example something have gone wrong and `Param` is `nullptr` not because it's an implicit object but because something have gone wrong)
https://github.com/llvm/llvm-project/pull/206337
More information about the cfe-commits
mailing list