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

Method CheckCompoundNames

Source/cmFindProgramCommand.cxx:68–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 this->AddName(name);
67 }
68 bool CheckCompoundNames()
69 {
70 return std::any_of(this->Names.begin(), this->Names.end(),
71 [this](std::string const& n) -> bool {
72 // Only perform search relative to current directory
73 // if the file name contains a directory separator.
74 return n.find('/') != std::string::npos &&
75 this->CheckDirectoryForName("", n);
76 });
77 }
78 bool CheckDirectory(std::string const& path)
79 {
80 return std::any_of(this->Names.begin(), this->Names.end(),

Calls 4

CheckDirectoryForNameMethod · 0.95
beginMethod · 0.45
endMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected