| 168 | |
| 169 | template <class T> |
| 170 | bool ComputePresetInheritance( |
| 171 | std::map<std::string, cmCMakePresetsGraph::PresetPair<T>>& presets, |
| 172 | cmCMakePresetsGraph& graph) |
| 173 | { |
| 174 | std::map<std::string, CycleStatus> cycleStatus; |
| 175 | for (auto const& it : presets) { |
| 176 | cycleStatus[it.first] = CycleStatus::Unvisited; |
| 177 | } |
| 178 | |
| 179 | for (auto& it : presets) { |
| 180 | auto& preset = it.second.Unexpanded; |
| 181 | if (!VisitPreset<T>(preset, presets, cycleStatus, graph)) { |
| 182 | return false; |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | return true; |
| 187 | } |
| 188 | |
| 189 | constexpr char const* ValidPrefixes[] = { |
| 190 | "", |
no outgoing calls
no test coverage detected
searching dependent graphs…