MCPcopy Create free account
hub / github.com/Kitware/CMake / AddSourceGroup

Method AddSourceGroup

Source/cmFileAPICodemodel.cxx:1480–1491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1478}
1479
1480Json::ArrayIndex Target::AddSourceGroup(cmSourceGroup const* sg)
1481{
1482 auto i = this->SourceGroupsMap.find(sg);
1483 if (i == this->SourceGroupsMap.end()) {
1484 auto sgIndex = static_cast<Json::ArrayIndex>(this->SourceGroups.size());
1485 i = this->SourceGroupsMap.emplace(sg, sgIndex).first;
1486 SourceGroup g;
1487 g.Name = sg->GetFullName();
1488 this->SourceGroups.push_back(std::move(g));
1489 }
1490 return i->second;
1491}
1492
1493CompileData Target::BuildCompileData(cmSourceFile* sf)
1494{

Callers 2

DumpSourceMethod · 0.95
DumpInterfaceSourceMethod · 0.95

Calls 7

moveFunction · 0.85
emplaceMethod · 0.80
push_backMethod · 0.80
findMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45
GetFullNameMethod · 0.45

Tested by

no test coverage detected