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

Function InvokeBuiltinCommand

Source/cmState.cxx:406–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404}
405
406static bool InvokeBuiltinCommand(cmState::BuiltinCommand command,
407 std::vector<cmListFileArgument> const& args,
408 cmExecutionStatus& status)
409{
410 cmMakefile& mf = status.GetMakefile();
411 std::vector<std::string> expandedArguments;
412 if (!mf.ExpandArguments(args, expandedArguments)) {
413 // There was an error expanding arguments. It was already
414 // reported, so we can skip this command without error.
415 return true;
416 }
417 return command(expandedArguments, status);
418}
419
420void cmState::AddBuiltinCommand(std::string const& name,
421 BuiltinCommand command)

Callers 2

AddBuiltinCommandMethod · 0.85
AddDisallowedCommandMethod · 0.85

Calls 2

ExpandArgumentsMethod · 0.80
GetMakefileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…