[clang] [LifetimeSafety] Add support for iterator arithmetic (PR #195442)
Utkarsh Saxena via cfe-commits
cfe-commits at lists.llvm.org
Mon May 4 00:58:32 PDT 2026
================
@@ -230,6 +233,19 @@ bool shouldTrackFirstArgument(const FunctionDecl *FD) {
return false;
}
+bool shouldTrackSecondArgument(const FunctionDecl *FD) {
+ if (FD->getNumParams() < 2)
+ return false;
+ if (!isInStlNamespace(FD))
----------------
usx95 wrote:
Can we get rid of only supporting STL views and support arithmetic on all GSL pointer types to match `shouldTrackImplicitObjectArg`
https://github.com/llvm/llvm-project/pull/195442
More information about the cfe-commits
mailing list