================
@@ -1015,3 +1015,22 @@ struct OtherMoveSafeClasses {
     // aggressive-note@-2   {{Moved-from object 'Task' is moved}}
   }
 };
+
+void safeOperatorAfterMove() {
+  std::list<std::string> l1;
+  l1.push_back("l1");
+  std::list<std::string> l2;
----------------
benedekaibas wrote:

I have used a template function for the negative use-after-move cases. I have 
only done it for those since the reporting line is the same for all of them. 
For the positive cases since the reporting lines aren't the same I kept the 
previous test cases. For the positive test cases I think marking the reporting 
lines separately is more important than reducing repeated code patterns, so I 
have kept the old behavior.

https://github.com/llvm/llvm-project/pull/196602
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to