[PATCH] D149723: [clang-tidy] Optimize performance of RenamerClangTidyCheck

Piotr Zegar via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 2 22:52:16 PDT 2023


PiotrZSL created this revision.
Herald added subscribers: carlosgalvezp, xazax.hun.
Herald added a reviewer: njames93.
Herald added a project: All.
PiotrZSL requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.

Refactor RenamerClangTidyCheck to achieve better performance
by removing object copies, duplicated function calls and by
using RecursiveASTVisitor.

Measured -72% execution time on bugprone-reserved-identifier.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D149723

Files:
  clang-tools-extra/clang-tidy/utils/RenamerClangTidyCheck.cpp
  clang-tools-extra/clang-tidy/utils/RenamerClangTidyCheck.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149723.518974.patch
Type: text/x-patch
Size: 31004 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230503/fd64195e/attachment-0001.bin>


More information about the cfe-commits mailing list