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

Function HandlePrependCommand

Source/cmListCommand.cxx:176–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176bool HandlePrependCommand(std::vector<std::string> const& args,
177 cmExecutionStatus& status)
178{
179 assert(args.size() >= 2);
180
181 // Skip if nothing to prepend.
182 if (args.size() < 3) {
183 return true;
184 }
185
186 cmMakefile& makefile = status.GetMakefile();
187 std::string const& listName = args[1];
188 // expand the variable
189 std::string listString;
190 GetListString(listString, listName, makefile);
191
192 makefile.AddDefinition(
193 listName, cmList::prepend(listString, args.begin() + 2, args.end()));
194 return true;
195}
196
197bool HandlePopBackCommand(std::vector<std::string> const& args,
198 cmExecutionStatus& status)

Callers

nothing calls this directly

Calls 6

GetListStringFunction · 0.85
sizeMethod · 0.45
GetMakefileMethod · 0.45
AddDefinitionMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…