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

Method GetCommandByExactName

Source/cmState.cxx:540–551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

538}
539
540cmState::Command cmState::GetCommandByExactName(std::string const& name) const
541{
542 auto pos = this->ScriptedCommands.find(name);
543 if (pos != this->ScriptedCommands.end()) {
544 return pos->second;
545 }
546 pos = this->BuiltinCommands.find(name);
547 if (pos != this->BuiltinCommands.end()) {
548 return pos->second;
549 }
550 return nullptr;
551}
552
553std::vector<std::string> cmState::GetCommandNames() const
554{

Callers 3

AddScriptedCommandMethod · 0.95
GetCommandMethod · 0.95
ExecuteCommandMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected