Coverage Report

Created: 2022-01-18 06:27

/Users/buildslave/jenkins/workspace/coverage/llvm-project/lldb/include/lldb/Interpreter/OptionValueUUID.h
Line
Count
Source (jump to first uncovered line)
1
//===-- OptionValueUUID.h --------------------------------------*- C++ -*-===//
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-exception
6
//
7
//===----------------------------------------------------------------------===//
8
9
#ifndef LLDB_INTERPRETER_OPTIONVALUEUUID_H
10
#define LLDB_INTERPRETER_OPTIONVALUEUUID_H
11
12
#include "lldb/Utility/UUID.h"
13
#include "lldb/Interpreter/OptionValue.h"
14
15
namespace lldb_private {
16
17
class OptionValueUUID : public Cloneable<OptionValueUUID, OptionValue> {
18
public:
19
17.8k
  OptionValueUUID() = default;
20
21
0
  OptionValueUUID(const UUID &uuid) : m_uuid(uuid) {}
22
23
17.8k
  ~OptionValueUUID() override = default;
24
25
  // Virtual subclass pure virtual overrides
26
27
0
  OptionValue::Type GetType() const override { return eTypeUUID; }
28
29
  void DumpValue(const ExecutionContext *exe_ctx, Stream &strm,
30
                 uint32_t dump_mask) override;
31
32
  Status
33
  SetValueFromString(llvm::StringRef value,
34
                     VarSetOperationType op = eVarSetOperationAssign) override;
35
36
30
  void Clear() override {
37
30
    m_uuid.Clear();
38
30
    m_value_was_set = false;
39
30
  }
40
41
  // Subclass specific functions
42
43
0
  UUID &GetCurrentValue() { return m_uuid; }
44
45
1
  const UUID &GetCurrentValue() const { return m_uuid; }
46
47
0
  void SetCurrentValue(const UUID &value) { m_uuid = value; }
48
49
  void AutoComplete(CommandInterpreter &interpreter,
50
                    CompletionRequest &request) override;
51
52
protected:
53
  UUID m_uuid;
54
};
55
56
} // namespace lldb_private
57
58
#endif // LLDB_INTERPRETER_OPTIONVALUEUUID_H