[clang] [LifetimeSafety] Add support for iterator arithmetic (PR #195442)
Gábor Horváth via cfe-commits
cfe-commits at lists.llvm.org
Tue May 5 02:58:44 PDT 2026
================
@@ -61,6 +62,11 @@ bool shouldTrackImplicitObjectArg(const CXXMethodDecl *Callee,
// std::any_cast.
bool shouldTrackFirstArgument(const FunctionDecl *FD);
+// Returns true if the second argument of a free function should be tracked for
+// GSL lifetime analysis. This applies to free operator functions that take a
----------------
Xazax-hun wrote:
Nit: I think we have one lifetime analysis that applies both to GSL Pointer annotated types and some other things. so I'd just say lifetime analysis, dropping the GSL qualifier there..
https://github.com/llvm/llvm-project/pull/195442
More information about the cfe-commits
mailing list