baloghadamsoftware added a comment. Herald added subscribers: ASDenysPetrov, martong, steakhal.
I think you can create a unit test for this: create a pre-call checker that checks for the assignment operator and asserts that we are not in top level. Create a test code with a simple class without user provided copy operator and a function that uses the auto-generated copy operator. Run the checker on this sample code. Repository: rC Clang CHANGES SINCE LAST ACTION https://reviews.llvm.org/D57890/new/ https://reviews.llvm.org/D57890 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits