brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · f13ec18 Raw
29 lines · cpp
1//===-- CommandObjectVersion.cpp ------------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9#include "CommandObjectVersion.h"10 11#include "lldb/Interpreter/CommandReturnObject.h"12#include "lldb/Version/Version.h"13 14using namespace lldb;15using namespace lldb_private;16 17// CommandObjectVersion18 19CommandObjectVersion::CommandObjectVersion(CommandInterpreter &interpreter)20    : CommandObjectParsed(interpreter, "version",21                          "Show the LLDB debugger version.", "version") {}22 23CommandObjectVersion::~CommandObjectVersion() = default;24 25void CommandObjectVersion::DoExecute(Args &args, CommandReturnObject &result) {26  result.AppendMessageWithFormat("%s\n", lldb_private::GetVersion());27  result.SetStatus(eReturnStatusSuccessFinishResult);28}29