[clang] [LifetimeSafety] Track moved declarations to prevent false positives (PR #170007)
Gábor Horváth via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 16 10:22:15 PST 2026
================
@@ -163,9 +163,27 @@ void FactsGenerator::VisitCXXMemberCallExpr(const CXXMemberCallExpr *MCE) {
}
}
+static bool isStdMove(const FunctionDecl *FD) {
----------------
Xazax-hun wrote:
I think if we have a simple heuristics to detect "transparent" functions like `move` that just propagates the same origin and look through them in our analysis, the simple logic to stop tacking origins that are passed as an rvalue reference will start to work. But this is out of scope for this PR.
https://github.com/llvm/llvm-project/pull/170007
More information about the cfe-commits
mailing list