================
@@ -95,3 +95,45 @@ bool Properties::IsSettingExperimental(llvm::StringRef
setting) {
size_t dot_pos = setting.find_first_of('.');
return setting.take_front(dot_pos) == experimental;
}
+
+void Properties::SetPropertiesAtPathIfNotExists(
----------------
Nerixyz wrote:
There's `OptionValueProperties::GetSubValue` which gets an `OptionValueSP` for
a path. But here, we also create the intermediate properties if they don't
exist. Furthermore, here, we only get the "parent" property. For example, for
`target` we don't look up anything and for `target.process`, we look up
`target`.
I suppose we could use `GetSubValue` to check if the setting exists. But we'd
still need a helper that creates the intermediate settings.
https://github.com/llvm/llvm-project/pull/180232
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits