Skip to content

Commit b1e67db

Browse files
authored
clang-tidy: fix bugprone-reserved-identifier (#489)
1 parent 44fb935 commit b1e67db

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/dev/clang-tidy-fixes-2026-04.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- [ ] bugprone-multi-level-implicit-pointer-conversion (4)
1010
- [ ] bugprone-narrowing-conversions (34)
1111
- [x] [bugprone-random-generator-seed](https://github.com/Framework-R-D/phlex/pull/490) (1)
12-
- [ ] bugprone-reserved-identifier (1)
12+
- [x] [bugprone-reserved-identifier](https://github.com/Framework-R-D/phlex/pull/489) (1)
1313
- [ ] bugprone-return-const-ref-from-parameter (163)
1414
- [ ] bugprone-throwing-static-initialization (11)
1515
- [ ] bugprone-unchecked-optional-access (15)

phlex/core/index_router.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ namespace phlex::experimental {
216216
return matched_flushing_entries_.find(layer_hash)->second;
217217
}
218218

219-
auto [routing_it, _] = matched_routing_entries_.try_emplace(layer_hash);
220-
auto [flushing_it, __] = matched_flushing_entries_.try_emplace(layer_hash);
219+
auto routing_it = matched_routing_entries_.try_emplace(layer_hash).first;
220+
auto flushing_it = matched_flushing_entries_.try_emplace(layer_hash).first;
221221

222222
auto const layer_path = index->layer_path();
223223

0 commit comments

Comments
 (0)