Add accessors on SBCommand to get and set the help texts for a command

llvm-svn: 232226
This commit is contained in:
Enrico Granata
2015-03-13 22:32:11 +00:00
parent 2fc62ed37d
commit cc342da574
2 changed files with 31 additions and 0 deletions

View File

@@ -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);

View File

@@ -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)
{