forked from OSchip/llvm-project
98e4019a58
Summary: Also trigger the check in the following case: void foo() { ExpensiveToCopy Obj; const auto UnnecessaryCopy = Obj.constReference(); Obj.onlyUsedAsConst(); } i.e. when the object the method is called on is not const but is never modified. Reviewers: alexfh, fowles Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D20010 llvm-svn: 271239 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
FasterStringFindCheck.cpp | ||
FasterStringFindCheck.h | ||
ForRangeCopyCheck.cpp | ||
ForRangeCopyCheck.h | ||
ImplicitCastInLoopCheck.cpp | ||
ImplicitCastInLoopCheck.h | ||
PerformanceTidyModule.cpp | ||
UnnecessaryCopyInitialization.cpp | ||
UnnecessaryCopyInitialization.h | ||
UnnecessaryValueParamCheck.cpp | ||
UnnecessaryValueParamCheck.h |