[PATCH] D137205: [clang-tidy] Add performance-unnecessary-copy-on-last-use check

Fabian Keßler via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 24 14:25:55 PST 2022


Febbe updated this revision to Diff 477846.
Febbe marked an inline comment as done.
Febbe added a comment.
Herald added subscribers: kadircet, arphaman.

Replaces match clauses with `RecursiveASTVisistor`s

- doubled performance
- fixed also a bug in template spezialisations


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137205/new/

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/clangd/TidyProvider.cpp
  clang-tools-extra/docs/ReleaseNotes.rst
  clang-tools-extra/docs/clang-tidy/checks/list.rst
  clang-tools-extra/docs/clang-tidy/checks/performance/unnecessary-copy-on-last-use.rst
  clang-tools-extra/test/clang-tidy/checkers/performance/unnecessary-copy-on-last-use.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137205.477846.patch
Type: text/x-patch
Size: 31571 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221124/d53194bd/attachment-0001.bin>


More information about the cfe-commits mailing list