[lldb/API] Move SBCommandInterpreterRunOption in its own header. (NFC)
authorJonas Devlieghere <jonas@devlieghere.com>
Thu, 30 Apr 2020 20:28:42 +0000 (13:28 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Thu, 30 Apr 2020 20:41:21 +0000 (13:41 -0700)
commit4b354039423f2a4d50cf70564faf52d8bb8a6fe3
treea916012e64b6cd81296a7e50abd144633c33f63f
parentb5be1c5419e2a38eb60fc7e785567b54b6d9e0e0
[lldb/API] Move SBCommandInterpreterRunOption in its own header. (NFC)

Currently, `SBCommandInterpreterRunOptions` is defined in
`SBCommandInterpreter.h`. Given that the options are always passed by
reference, a forward declaration is sufficient.

That's not the case for `SBCommandInterpreterRunResults`, which we need
for a new overload for `RunCommandInterpreter` and that returns this new
class by value. We can't include `SBCommandInterpreter.h` because
`SBCommandInterpreter::GetDebugger()` returns SBDebugger by value and
therefore needs a full definition.

This patch moves the definition of `SBCommandInterpreterRunOptions` into
a new header. In a later patch,  `SBCommandInterpreterRunResults` will
be defined in there as well, solving the aforementioned problem.

Differential revision: https://reviews.llvm.org/D79115
15 files changed:
lldb/bindings/headers.swig
lldb/bindings/interface/SBCommandInterpreter.i
lldb/bindings/interface/SBCommandInterpreterRunOptions.i [new file with mode: 0644]
lldb/bindings/interfaces.swig
lldb/include/lldb/API/SBCommandInterpreter.h
lldb/include/lldb/API/SBCommandInterpreterRunOptions.h [new file with mode: 0644]
lldb/lldb/bindings/interface/SBCommandInterpreterRunOptions.i [new file with mode: 0644]
lldb/lldb/include/lldb/API/SBCommandInterpreterRunOptions.h [new file with mode: 0644]
lldb/lldb/source/API/SBCommandInterpreterRunOptions.cpp [new file with mode: 0644]
lldb/source/API/CMakeLists.txt
lldb/source/API/SBCommandInterpreter.cpp
lldb/source/API/SBCommandInterpreterRunOptions.cpp [new file with mode: 0644]
lldb/source/API/SBDebugger.cpp
lldb/source/API/SBReproducer.cpp
lldb/tools/driver/Driver.cpp