[clang-tools-extra] [clang-tidy] Speed up `readability-container-contains` (PR #175121)
Victor Chernyakin via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 10 18:37:17 PST 2026
localspook wrote:
The check currently doesn't work with templated containers: https://godbolt.org/z/9Ts9d9EcG
Supporting them would require a heuristic like what `bugprone-standalone-empty` uses:
https://github.com/llvm/llvm-project/blob/d593bcdc54981e84b5bf17a110d9f809bd883c41/clang-tools-extra/clang-tidy/bugprone/StandaloneEmptyCheck.cpp#L129-L137
https://github.com/llvm/llvm-project/pull/175121
More information about the cfe-commits
mailing list