[all-commits] [llvm/llvm-project] 1c2820: [clang-tidy] Optimize performance of RenamerClangT...

Piotr Zegar via All-commits all-commits at lists.llvm.org
Sat May 6 05:25:00 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c282052624f9d0bd273bde0b47b30c96699c6c7
      https://github.com/llvm/llvm-project/commit/1c282052624f9d0bd273bde0b47b30c96699c6c7
  Author: Piotr Zegar <me at piotrzegar.pl>
  Date:   2023-05-06 (Sat, 06 May 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/utils/RenamerClangTidyCheck.cpp
    M clang-tools-extra/clang-tidy/utils/RenamerClangTidyCheck.h

  Log Message:
  -----------
  [clang-tidy] Optimize performance of RenamerClangTidyCheck

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.

Reviewed By: njames93

Differential Revision: https://reviews.llvm.org/D149723




More information about the All-commits mailing list