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

Method AddFile

Source/CTest/cmCTestMultiProcessHandler.cxx:1294–1302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1292 }
1293
1294 Json::ArrayIndex AddFile(std::string const& file)
1295 {
1296 auto i = this->FileMap.find(file);
1297 if (i == this->FileMap.end()) {
1298 i = this->FileMap.emplace(file, this->Files.size()).first;
1299 this->Files.append(file);
1300 }
1301 return i->second;
1302 }
1303
1304public:
1305 bool Add(cmListFileBacktrace const& bt, Json::ArrayIndex& index);

Callers 1

AddMethod · 0.95

Calls 5

emplaceMethod · 0.80
appendMethod · 0.80
findMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected