[all-commits] [llvm/llvm-project] dca6f6: [NFC][clang-tidy]improve performance for misc-unus...
Congcong Cai via All-commits
all-commits at lists.llvm.org
Tue Jan 16 01:45:16 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dca6f60bcdd4a8e6c5defad454d9c470a27701fe
https://github.com/llvm/llvm-project/commit/dca6f60bcdd4a8e6c5defad454d9c470a27701fe
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 (#78231)
`UnusedUsingDeclsCheck::removeFromFoundDecls` will be called with high
frequency. At current time it will check every `Context`.
This patch adds a cache to reduce algorithm complexity.
More information about the All-commits
mailing list