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

Function InheritString

Source/cmCMakePresetsGraph.cxx:59–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57using cmCMakePresetsGraphInternal::ExpandMacros;
58
59void InheritString(std::string& child, std::string const& parent)
60{
61 if (child.empty()) {
62 child = parent;
63 }
64}
65
66template <typename T>
67void InheritOptionalValue(cm::optional<T>& child,

Callers 1

VisitPresetInheritMethod · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…