mirror of
https://github.com/intel/llvm.git
synced 2026-01-13 19:08:21 +08:00
Add accessors on SBCommand to get and set the help texts for a command
llvm-svn: 232226
This commit is contained in:
@@ -266,6 +266,15 @@ public:
|
||||
const char*
|
||||
GetHelp ();
|
||||
|
||||
const char*
|
||||
GetHelpLong ();
|
||||
|
||||
void
|
||||
SetHelp (const char*);
|
||||
|
||||
void
|
||||
SetHelpLong (const char*);
|
||||
|
||||
lldb::SBCommand
|
||||
AddMultiwordCommand (const char* name, const char* help = NULL);
|
||||
|
||||
|
||||
@@ -794,6 +794,28 @@ SBCommand::GetHelp ()
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const char*
|
||||
SBCommand::GetHelpLong ()
|
||||
{
|
||||
if (IsValid ())
|
||||
return m_opaque_sp->GetHelpLong ();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void
|
||||
SBCommand::SetHelp (const char* help)
|
||||
{
|
||||
if (IsValid())
|
||||
m_opaque_sp->SetHelp(help);
|
||||
}
|
||||
|
||||
void
|
||||
SBCommand::SetHelpLong (const char* help)
|
||||
{
|
||||
if (IsValid())
|
||||
m_opaque_sp->SetHelpLong(help);
|
||||
}
|
||||
|
||||
lldb::SBCommand
|
||||
SBCommand::AddMultiwordCommand (const char* name, const char* help)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user