[PATCH] D59103: [clang-tidy] New checker bugprone-incomplete-comparison-operator
MyDeveloperDay via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 7 11:21:26 PST 2019
MyDeveloperDay added a comment.
I definately been burnt by not handling all the cases, but imagine a string class
class mystring
{
const char *ptr;
int size;
int numallocated;
}
to compare the strings I wouldn't want to compare all the fields?
I think this could lead to a lot of false positives
Repository:
rCTE Clang Tools Extra
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59103/new/
https://reviews.llvm.org/D59103
More information about the cfe-commits
mailing list