================
@@ -134,6 +134,17 @@ makeReinitMatcher(const ValueDecl *MovedVariable,
// built-in types.
binaryOperation(hasOperatorName("="),
hasLHS(ignoringParenImpCasts(DeclRefMatcher))),
+ // std::tie() assignment: std::tie(a, b) = expr reinitializes
+ // all variables passed to std::tie because the tuple
+ // assignment writes back through the stored references.
+ // ignoringImplicit strips the MaterializeTemporaryExpr that
+ // Clang inserts when calling operator= on the prvalue tuple.
----------------
zeyi2 wrote:
```suggestion
```
https://github.com/llvm/llvm-project/pull/192895
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits