The misc-unconventional-assign-operator check had a false positive
warning when the 'operator*' in 'return *this' was unresolved.
Change matcher to allow calls to unresolved operator.
Fixes PR31531.
Differential D29393
[clang-tidy] Don't warn about call to unresolved operator* malcolm.parsons on Feb 1 2017, 6:23 AM. Authored by
Details The misc-unconventional-assign-operator check had a false positive Change matcher to allow calls to unresolved operator. Fixes PR31531.
Diff Detail
Event Timeline
Comment Actions LGTM with a minor nit that can be fixed without further review.
|
Seems that it will catch all unary operators with this as first argument.
e.g. in case operator- is defined somewhere, check will not warn about returning -this.
Do you think adding hasOverloadedOperatorName("*") for such abstract case is worth it?