[clang-tools-extra] [clang-tidy][NFC] Use universal containers mock (PR #186669)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 15 06:46:10 PDT 2026


================
@@ -665,12 +680,12 @@ void IgnoreDirectInit() {
 }
 
 void StdMapTestCases() {
-  for (auto p : std::unordered_map<int, int>()) {
+  for (const auto p : std::unordered_map<int, int>()) {
----------------
vbvictor wrote:

Same happens on trunk - we can't decompose unordered_map if it is not const

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


More information about the cfe-commits mailing list