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

Method AddCommand

Source/cmFileAPICodemodel.cxx:153–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151 Json::Value Nodes = Json::arrayValue;
152
153 Json::ArrayIndex AddCommand(std::string const& command)
154 {
155 auto i = this->CommandMap.find(command);
156 if (i == this->CommandMap.end()) {
157 auto cmdIndex = static_cast<Json::ArrayIndex>(this->Commands.size());
158 i = this->CommandMap.emplace(command, cmdIndex).first;
159 this->Commands.append(command);
160 }
161 return i->second;
162 }
163
164 Json::ArrayIndex AddFile(std::string const& file)
165 {

Callers 15

AddMethod · 0.95
testUVProcessChainNoneFunction · 0.45
testUVProcessChainWait0Function · 0.45
GetFileInfoMethod · 0.45

Calls 5

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

Tested by 12

testUVProcessChainNoneFunction · 0.36
testUVProcessChainWait0Function · 0.36
RunMakeCommandMethod · 0.36
RunCommandMethod · 0.36