aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Serialization/GlobalModuleIndex.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2022-12-04 18:36:41 +0100
committerBenjamin Kramer <benny.kra@googlemail.com>2022-12-04 18:36:41 +0100
commitfcf4e360ba6b5f005d2c478ca79112be7a61dacb (patch)
treec8cd62d051e7d305fa6e6bfdd092ad8c086e6c52 /clang/lib/Serialization/GlobalModuleIndex.cpp
parent02c75e8465c8a637a0b32e8330458f4cb516a283 (diff)
downloadllvm-fcf4e360ba6b5f005d2c478ca79112be7a61dacb.zip
llvm-fcf4e360ba6b5f005d2c478ca79112be7a61dacb.tar.gz
llvm-fcf4e360ba6b5f005d2c478ca79112be7a61dacb.tar.bz2
Iterate over StringMaps using structured bindings. NFCI.
Diffstat (limited to 'clang/lib/Serialization/GlobalModuleIndex.cpp')
-rw-r--r--clang/lib/Serialization/GlobalModuleIndex.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/Serialization/GlobalModuleIndex.cpp b/clang/lib/Serialization/GlobalModuleIndex.cpp
index b2283c2..568e207 100644
--- a/clang/lib/Serialization/GlobalModuleIndex.cpp
+++ b/clang/lib/Serialization/GlobalModuleIndex.cpp
@@ -815,10 +815,8 @@ bool GlobalModuleIndexBuilder::writeIndex(llvm::BitstreamWriter &Stream) {
IdentifierIndexWriterTrait Trait;
// Populate the hash table.
- for (InterestingIdentifierMap::iterator I = InterestingIdentifiers.begin(),
- IEnd = InterestingIdentifiers.end();
- I != IEnd; ++I) {
- Generator.insert(I->first(), I->second, Trait);
+ for (auto &[Identifier, IDs] : InterestingIdentifiers) {
+ Generator.insert(Identifier, IDs, Trait);
}
// Create the on-disk hash table in a buffer.