[clang] [NFC][Clang] Use range for loops in ClangDiagnosticsEmitter (PR #115573)
Rahul Joshi via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 12 07:32:16 PST 2024
================
@@ -1570,8 +1541,7 @@ static void emitDiagSubGroups(std::map<std::string, GroupInfo> &DiagsInGroup,
for (auto const &Group : GroupsInPedantic) {
const std::string &GroupName =
std::string(Group->getValueAsString("GroupName"));
- std::map<std::string, GroupInfo>::const_iterator RI =
- DiagsInGroup.find(GroupName);
+ auto RI = DiagsInGroup.find(GroupName);
----------------
jurahul wrote:
See above. auto seems ok here
https://github.com/llvm/llvm-project/pull/115573
More information about the cfe-commits
mailing list