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

Method MatchChildrenRegex

Source/cmSourceGroup.cxx:139–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139cmSourceGroup* cmSourceGroup::MatchChildrenRegex(std::string const& name) const
140{
141 for (auto& group : this->Internal->GroupChildren) {
142 cmSourceGroup* result = group->MatchChildrenRegex(name);
143 if (result) {
144 return result;
145 }
146 }
147 if (this->MatchesRegex(name)) {
148 return const_cast<cmSourceGroup*>(this);
149 }
150
151 return nullptr;
152}
153
154SourceGroupVector const& cmSourceGroup::GetGroupChildren() const
155{

Callers 1

FindSourceGroupMethod · 0.80

Calls 1

MatchesRegexMethod · 0.95

Tested by

no test coverage detected