This yields better recall as ExprMutationAnalyzer is more accurate.
One common pattern this check is now able to catch is:
void foo(std::vector<X> v) {
for (const auto& elm : v) {
// ...
}
} Differential D50102
[clang-tidy] Use ExprMutationAnalyzer in performance-unnecessary-value-param Authored by shuaiwang on Jul 31 2018, 2:07 PM.
Details This yields better recall as ExprMutationAnalyzer is more accurate. One common pattern this check is now able to catch is: void foo(std::vector<X> v) {
for (const auto& elm : v) {
// ...
}
}
Diff Detail
Event Timeline
Comment Actions LGTM.
| ||||||||||||||||
This comment needs to be updated.