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

Method AddBuiltinCommand

Source/cmState.cxx:399–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399void cmState::AddBuiltinCommand(std::string const& name, Command command)
400{
401 assert(name == cmSystemTools::LowerCase(name));
402 assert(this->BuiltinCommands.find(name) == this->BuiltinCommands.end());
403 this->BuiltinCommands.emplace(name, std::move(command));
404}
405
406static bool InvokeBuiltinCommand(cmState::BuiltinCommand command,
407 std::vector<cmListFileArgument> const& args,

Callers 8

AddFlowControlCommandMethod · 0.95
AddDisallowedCommandMethod · 0.95
AddRemovedCommandMethod · 0.95
AddUnexpectedCommandMethod · 0.95
GetScriptingCommandsFunction · 0.80
GetProjectCommandsFunction · 0.80
GetListOfTestsMethod · 0.80
CreateCMakeMethod · 0.80

Calls 5

moveFunction · 0.85
InvokeBuiltinCommandFunction · 0.85
emplaceMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by 2

GetListOfTestsMethod · 0.64
CreateCMakeMethod · 0.64