[Lldb-commits] [lldb] [LLDB] Set and verify paths of properties from tablegen (PR #179524)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Wed Feb 4 05:56:08 PST 2026
================
@@ -489,3 +505,22 @@ OptionValueProperties::GetSubProperty(const ExecutionContext *exe_ctx,
}
return lldb::OptionValuePropertiesSP();
}
+
+bool OptionValueProperties::VerifyPath() {
+ OptionValueSP parent = GetParent();
+ if (!parent)
+ // Only the top level value should have an empty path.
+ return m_expected_path.empty();
----------------
DavidSpickett wrote:
I know this pre-processes into
```
if (foo)
return thing;
```
But I still count these as 2 line ifs, which should have braces.
https://github.com/llvm/llvm-project/pull/179524
More information about the lldb-commits
mailing list