[lldb] Move ScriptCommand and RegexCommand under Commands (NFC)
Move the CommandObjectScript and CommandObjectRegexCommand under Commands where all the other CommandObject implementations live. Although neither implementations currently use the TableGen-generated CommandOptions.inc, this move would have been necessary anyway if they were to in the future.
This commit is contained in:
parent
202766947e
commit
9390b346fc
|
@ -21,8 +21,10 @@ add_lldb_library(lldbCommands
|
||||||
CommandObjectPlugin.cpp
|
CommandObjectPlugin.cpp
|
||||||
CommandObjectProcess.cpp
|
CommandObjectProcess.cpp
|
||||||
CommandObjectQuit.cpp
|
CommandObjectQuit.cpp
|
||||||
|
CommandObjectRegexCommand.cpp
|
||||||
CommandObjectRegister.cpp
|
CommandObjectRegister.cpp
|
||||||
CommandObjectReproducer.cpp
|
CommandObjectReproducer.cpp
|
||||||
|
CommandObjectScript.cpp
|
||||||
CommandObjectSession.cpp
|
CommandObjectSession.cpp
|
||||||
CommandObjectSettings.cpp
|
CommandObjectSettings.cpp
|
||||||
CommandObjectSource.cpp
|
CommandObjectSource.cpp
|
||||||
|
|
|
@ -6,15 +6,13 @@
|
||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#include "llvm/ADT/StringRef.h"
|
|
||||||
|
|
||||||
#include "CommandObjectCommands.h"
|
#include "CommandObjectCommands.h"
|
||||||
#include "CommandObjectHelp.h"
|
#include "CommandObjectHelp.h"
|
||||||
|
#include "CommandObjectRegexCommand.h"
|
||||||
#include "lldb/Core/Debugger.h"
|
#include "lldb/Core/Debugger.h"
|
||||||
#include "lldb/Core/IOHandler.h"
|
#include "lldb/Core/IOHandler.h"
|
||||||
#include "lldb/Interpreter/CommandHistory.h"
|
#include "lldb/Interpreter/CommandHistory.h"
|
||||||
#include "lldb/Interpreter/CommandInterpreter.h"
|
#include "lldb/Interpreter/CommandInterpreter.h"
|
||||||
#include "lldb/Interpreter/CommandObjectRegexCommand.h"
|
|
||||||
#include "lldb/Interpreter/CommandReturnObject.h"
|
#include "lldb/Interpreter/CommandReturnObject.h"
|
||||||
#include "lldb/Interpreter/OptionArgParser.h"
|
#include "lldb/Interpreter/OptionArgParser.h"
|
||||||
#include "lldb/Interpreter/OptionValueBoolean.h"
|
#include "lldb/Interpreter/OptionValueBoolean.h"
|
||||||
|
@ -24,6 +22,7 @@
|
||||||
#include "lldb/Interpreter/ScriptInterpreter.h"
|
#include "lldb/Interpreter/ScriptInterpreter.h"
|
||||||
#include "lldb/Utility/Args.h"
|
#include "lldb/Utility/Args.h"
|
||||||
#include "lldb/Utility/StringList.h"
|
#include "lldb/Utility/StringList.h"
|
||||||
|
#include "llvm/ADT/StringRef.h"
|
||||||
|
|
||||||
using namespace lldb;
|
using namespace lldb;
|
||||||
using namespace lldb_private;
|
using namespace lldb_private;
|
||||||
|
|
|
@ -6,8 +6,7 @@
|
||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#include "lldb/Interpreter/CommandObjectRegexCommand.h"
|
#include "CommandObjectRegexCommand.h"
|
||||||
|
|
||||||
#include "lldb/Interpreter/CommandInterpreter.h"
|
#include "lldb/Interpreter/CommandInterpreter.h"
|
||||||
#include "lldb/Interpreter/CommandReturnObject.h"
|
#include "lldb/Interpreter/CommandReturnObject.h"
|
||||||
|
|
|
@ -21,10 +21,10 @@ namespace lldb_private {
|
||||||
|
|
||||||
class CommandObjectRegexCommand : public CommandObjectRaw {
|
class CommandObjectRegexCommand : public CommandObjectRaw {
|
||||||
public:
|
public:
|
||||||
CommandObjectRegexCommand(CommandInterpreter &interpreter, llvm::StringRef name,
|
CommandObjectRegexCommand(CommandInterpreter &interpreter,
|
||||||
llvm::StringRef help, llvm::StringRef syntax,
|
llvm::StringRef name, llvm::StringRef help,
|
||||||
uint32_t max_matches, uint32_t completion_type_mask,
|
llvm::StringRef syntax, uint32_t max_matches,
|
||||||
bool is_removable);
|
uint32_t completion_type_mask, bool is_removable);
|
||||||
|
|
||||||
~CommandObjectRegexCommand() override;
|
~CommandObjectRegexCommand() override;
|
||||||
|
|
|
@ -11,8 +11,6 @@ add_lldb_library(lldbInterpreter
|
||||||
CommandHistory.cpp
|
CommandHistory.cpp
|
||||||
CommandInterpreter.cpp
|
CommandInterpreter.cpp
|
||||||
CommandObject.cpp
|
CommandObject.cpp
|
||||||
CommandObjectRegexCommand.cpp
|
|
||||||
CommandObjectScript.cpp
|
|
||||||
CommandOptionValidators.cpp
|
CommandOptionValidators.cpp
|
||||||
CommandReturnObject.cpp
|
CommandReturnObject.cpp
|
||||||
OptionArgParser.cpp
|
OptionArgParser.cpp
|
||||||
|
|
|
@ -12,9 +12,6 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "CommandObjectScript.h"
|
|
||||||
#include "lldb/Interpreter/CommandObjectRegexCommand.h"
|
|
||||||
|
|
||||||
#include "Commands/CommandObjectApropos.h"
|
#include "Commands/CommandObjectApropos.h"
|
||||||
#include "Commands/CommandObjectBreakpoint.h"
|
#include "Commands/CommandObjectBreakpoint.h"
|
||||||
#include "Commands/CommandObjectCommands.h"
|
#include "Commands/CommandObjectCommands.h"
|
||||||
|
@ -30,8 +27,10 @@
|
||||||
#include "Commands/CommandObjectPlugin.h"
|
#include "Commands/CommandObjectPlugin.h"
|
||||||
#include "Commands/CommandObjectProcess.h"
|
#include "Commands/CommandObjectProcess.h"
|
||||||
#include "Commands/CommandObjectQuit.h"
|
#include "Commands/CommandObjectQuit.h"
|
||||||
|
#include "Commands/CommandObjectRegexCommand.h"
|
||||||
#include "Commands/CommandObjectRegister.h"
|
#include "Commands/CommandObjectRegister.h"
|
||||||
#include "Commands/CommandObjectReproducer.h"
|
#include "Commands/CommandObjectReproducer.h"
|
||||||
|
#include "Commands/CommandObjectScript.h"
|
||||||
#include "Commands/CommandObjectSession.h"
|
#include "Commands/CommandObjectSession.h"
|
||||||
#include "Commands/CommandObjectSettings.h"
|
#include "Commands/CommandObjectSettings.h"
|
||||||
#include "Commands/CommandObjectSource.h"
|
#include "Commands/CommandObjectSource.h"
|
||||||
|
|
Loading…
Reference in New Issue