[clang] [LifetimeSafety] Add implicit tracking for STL functions (PR #170005)
Utkarsh Saxena via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 8 02:04:07 PST 2026
================
@@ -71,6 +71,88 @@ bool implicitObjectParamIsLifetimeBound(const FunctionDecl *FD) {
return isNormalAssignmentOperator(FD);
}
+// Decl::isInStdNamespace will return false for iterators in some STL
+// implementations due to them being defined in a namespace outside of the std
+// namespace.
+static bool isInStlNamespace(const Decl *D) {
----------------
usx95 wrote:
Thanks. I think I missed it. Done.
https://github.com/llvm/llvm-project/pull/170005
More information about the cfe-commits
mailing list