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

Method LookupChild

Source/cmSourceGroup.cxx:97–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97cmSourceGroup* cmSourceGroup::LookupChild(std::string const& name) const
98{
99 for (auto& group : this->Internal->GroupChildren) {
100 // look if descendant is the one we're looking for
101 if (group->GetName() == name) {
102 return group.get(); // if so return it
103 }
104 }
105
106 // if no child with this name was found return NULL
107 return nullptr;
108}
109
110cmSourceGroup* cmSourceGroup::MatchChildrenFiles(std::string const& name)
111{

Callers 2

GetSourceGroupMethod · 0.80
AddSourceGroupMethod · 0.80

Calls 2

GetNameMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected