[Lldb-commits] [PATCH] D139249: [lldb] Add Debugger & ScriptedMetadata reference to Platform::CreateInstance

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Dec 15 13:57:17 PST 2022


labath added inline comments.


================
Comment at: lldb/include/lldb/Interpreter/OptionGroupPlatform.h:73
   bool m_include_platform_option;
+  OptionGroupPythonClassWithDict m_class_options;
 };
----------------
labath wrote:
> These nested groups are fairly unusual? Couldn't CommandObjectPlatformSelect just have two OptionGroup members?
I see that this is referenced in `OptionGroupPlatform::CreatePlatformWithOptions`. Maybe that could be fixed by moving that functions somewhere else (making it a free function) and having it take the two groups as arguments? Creating a platforms seems like too high-level of a task for an option group anyway...


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139249/new/

https://reviews.llvm.org/D139249



More information about the lldb-commits mailing list