================
@@ -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
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to