MCPcopy Create free account
hub / github.com/clice-io/clice / group_command

Method group_command

src/command/command.cpp:560–564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 }

Callers 2

scan_implFunction · 0.80
TEST_CASEFunction · 0.80

Calls 1

emptyMethod · 0.45

Tested by 1

TEST_CASEFunction · 0.64