[clang-tools-extra] [clang-tidy] Avoid repeated hash lookups (NFC) (PR #107490)

Kazu Hirata via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 5 18:56:39 PDT 2024


kazutakahirata wrote:

> Are you finding those automatically with a tool? Or just stumbled upon it?

Somewhat automatically.  Put `[[deprecated]]` on `insert` and `try_emplace`, collect warnings from the build, and look for `find` and `contain` in the few lines prior to `insert` and `try_emplace`.  I guess I could use `clang-query`, too.



https://github.com/llvm/llvm-project/pull/107490


More information about the cfe-commits mailing list