[PATCH] D57890: [analyzer] Fix in self assignment checker
Balogh, Ádám via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 21 00:31:46 PDT 2020
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
More information about the cfe-commits
mailing list