14#include "llvm/ADT/StringExtras.h"
19#define LLDB_OPTIONS_version
20#include "CommandOptions.inc"
22llvm::ArrayRef<OptionDefinition>
24 return llvm::ArrayRef(g_version_options);
29 "Show the LLDB debugger version.",
"version") {}
35 std::vector<std::string> values;
37 values.emplace_back(object->GetStringValue().str());
41 s <<
'[' << llvm::join(values,
", ") <<
']';
56 s <<
" " << key <<
": ";
58 s << (
boolean ?
"yes" :
"no");
static void dump(const StructuredData::Array &array, Stream &s)
A command line argument class.
CommandObjectParsed(CommandInterpreter &interpreter, const char *name, const char *help=nullptr, const char *syntax=nullptr, uint32_t flags=0)
llvm::ArrayRef< OptionDefinition > GetDefinitions() override
~CommandObjectVersion() override
void DoExecute(Args &args, CommandReturnObject &result) override
CommandObjectVersion(CommandInterpreter &interpreter)
void SetStatus(lldb::ReturnStatus status)
void AppendMessageWithFormat(const char *format,...) __attribute__((format(printf
Stream & GetOutputStream()
static StructuredData::DictionarySP GetBuildConfiguration()
Get the build configuration as structured data.
A stream class that can stream formatted output to a file.
bool ForEach(std::function< bool(Object *object)> const &foreach_callback) const
ObjectSP GetValueForKey(llvm::StringRef key) const
void ForEach(std::function< bool(llvm::StringRef key, Object *object)> const &callback) const
Dictionary * GetAsDictionary()
std::shared_ptr< Object > ObjectSP
A class that represents a running process on the host machine.
const char * GetVersion()
Retrieves a string representing the complete LLDB version, which includes the lldb version number,...
@ eReturnStatusSuccessFinishResult