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

Function ComputePresetInheritance

Source/cmCMakePresetsGraph.cxx:170–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168
169template <class T>
170bool 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
189constexpr char const* ValidPrefixes[] = {
190 "",

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…