[PATCH] D137205: [clang-tidy] Add performance-unnecessary-copy-on-last-use check - finds occurences of last uses, which are copied. - suggests adding a `std::move`. - detects assignments as last use. - Added BlockLists for false positive types and functions
Fabian Keßler via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 1 16:02:20 PDT 2022
Febbe created this revision.
Herald added subscribers: carlosgalvezp, xazax.hun.
Herald added a project: All.
Febbe requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D137205
Files:
clang-tools-extra/clang-tidy/performance/CMakeLists.txt
clang-tools-extra/clang-tidy/performance/PerformanceTidyModule.cpp
clang-tools-extra/clang-tidy/performance/UnnecessaryCopyOnLastUseCheck.cpp
clang-tools-extra/clang-tidy/performance/UnnecessaryCopyOnLastUseCheck.h
clang-tools-extra/test/clang-tidy/checkers/performance/unnecessary-copy-on-last-use.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137205.472437.patch
Type: text/x-patch
Size: 19594 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221101/7aa00d4e/attachment-0001.bin>
More information about the cfe-commits
mailing list