[PATCH] D97567: [clang-tidy] performance-* checks: Also allow allow member expressions to be used in a const manner.
Felix Berger via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 26 14:03:26 PST 2021
flx updated this revision to Diff 326798.
flx added a comment.
Add tests for PerformanceUnnecssaryCopyInitialization check which actually uses
decl_ref_expr::isOnlyUsedAsConst().
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97567/new/
https://reviews.llvm.org/D97567
Files:
clang-tools-extra/clang-tidy/utils/DeclRefExprUtils.cpp
clang-tools-extra/test/clang-tidy/checkers/performance-for-range-copy.cpp
clang-tools-extra/test/clang-tidy/checkers/performance-unnecessary-copy-initialization.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97567.326798.patch
Type: text/x-patch
Size: 5683 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210226/750576d3/attachment.bin>
More information about the cfe-commits
mailing list