10#include "VCSVersion.inc"
11#include "lldb/Version/Version.inc"
12#include "clang/Basic/Version.h"
15#ifdef LLDB_FULL_VERSION_STRING
16 return LLDB_FULL_VERSION_STRING;
18 return "lldb version " LLDB_VERSION_STRING;
32 return LLDB_REPOSITORY;
39 static std::string g_version_str;
41 if (g_version_str.empty()) {
45 g_version_str += lldb_version;
46 if (lldb_repo || lldb_rev) {
47 g_version_str +=
" (";
49 g_version_str += lldb_repo;
50 if (lldb_repo && lldb_rev)
53 g_version_str +=
"revision ";
54 g_version_str += lldb_rev;
59 std::string clang_rev(clang::getClangRevision());
60 if (clang_rev.length() > 0) {
61 g_version_str +=
"\n clang revision ";
62 g_version_str += clang_rev;
65 std::string llvm_rev(clang::getLLVMRevision());
66 if (llvm_rev.length() > 0) {
67 g_version_str +=
"\n llvm revision ";
68 g_version_str += llvm_rev;
72 return g_version_str.c_str();
static const char * GetLLDBVersion()
static const char * GetLLDBRepository()
static const char * GetLLDBRevision()
const char * GetVersion()
Retrieves a string representing the complete LLDB version, which includes the lldb version number,...