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

Method AddSourceCompileGroup

Source/cmFileAPICodemodel.cxx:1673–1688  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1671}
1672
1673Json::ArrayIndex Target::AddSourceCompileGroup(cmSourceFile* sf,
1674 Json::ArrayIndex si)
1675{
1676 CompileData compileData = this->BuildCompileData(sf);
1677 auto i = this->CompileGroupMap.find(compileData);
1678 if (i == this->CompileGroupMap.end()) {
1679 Json::ArrayIndex cgIndex =
1680 static_cast<Json::ArrayIndex>(this->CompileGroups.size());
1681 i = this->CompileGroupMap.emplace(std::move(compileData), cgIndex).first;
1682 CompileGroup g;
1683 g.Entry = i;
1684 this->CompileGroups.push_back(std::move(g));
1685 }
1686 this->CompileGroups[i->second].SourceIndexes.append(si);
1687 return i->second;
1688}
1689
1690void Target::AddBacktrace(Json::Value& object, cmListFileBacktrace const& bt)
1691{

Callers 1

DumpSourceMethod · 0.95

Calls 8

BuildCompileDataMethod · 0.95
moveFunction · 0.85
emplaceMethod · 0.80
push_backMethod · 0.80
appendMethod · 0.80
findMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected