[all-commits] [llvm/llvm-project] ebd6f7: [NFC][clang-tidy]improve performance for misc-unus...
Congcong Cai via All-commits
all-commits at lists.llvm.org
Mon Jan 15 20:57:15 PST 2024
Branch: refs/heads/users/ccc/improve-pref-UnusedUsingDeclsCheck
Home: https://github.com/llvm/llvm-project
Commit: ebd6f7648c7b4feeb88061b1127d96cf5e23d098
https://github.com/llvm/llvm-project/commit/ebd6f7648c7b4feeb88061b1127d96cf5e23d098
Author: Congcong Cai <congcongcai0907 at 163.com>
Date: 2024-01-16 (Tue, 16 Jan 2024)
Changed paths:
M clang-tools-extra/clang-tidy/misc/UnusedUsingDeclsCheck.cpp
M clang-tools-extra/clang-tidy/misc/UnusedUsingDeclsCheck.h
Log Message:
-----------
[NFC][clang-tidy]improve performance for misc-unused-using-decls check
`UnusedUsingDeclsCheck::removeFromFoundDecls` will be called with high frequency.
At current time it will check every `Context`.
This patch adds a cache to reduce algorithm complexitiy.
More information about the All-commits
mailing list