| 558 | for(auto& entry: entries) { |
| 559 | auto [it, inserted] = group_indices.try_emplace(entry.info.ptr, result.size()); |
| 560 | if(inserted) { |
| 561 | result.push_back({{}, build_command(entry.file, entry.info, options), entry.info}); |
| 562 | } |
| 563 | |
| 564 | auto& file_ids = result[it->second].file_ids; |
| 565 | if(file_ids.empty() || file_ids.back() != entry.file) { |
| 566 | file_ids.push_back(entry.file); |
| 567 | } |