[Lldb-commits] [lldb] [LLDB] Create properties by path from TableGen (PR #180232)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Feb 19 07:57:38 PST 2026
================
@@ -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
More information about the lldb-commits
mailing list