================
@@ -540,6 +547,89 @@ class NotACopyAssignmentOperator {
   Uy *getUy() const { return Ptr2; }
 };
 
+// Support "extended" copy/move constructors
+class AllocatorAwareClass {
----------------
vbvictor wrote:

Could you add cases when the check will fire (I suppose it at least):

- when the user did `swap(tmp, *this);`
- when user forgot to place `swap` at all.
- when user created `tmp` variable and did `swap`, but `tmp` variable had a 
wrong type.

https://github.com/llvm/llvm-project/pull/147066
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to