blob: 22fc3a100c75753ae7988140012526f9fe313f94 [file] [log] [blame]
Andrew Walbran3d2c1972020-04-07 12:24:26 +01001//===-- OptionGroupUUID.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 liblldb_OptionGroupUUID_h_
10#define liblldb_OptionGroupUUID_h_
11
12#include "lldb/Interpreter/OptionValueUUID.h"
13#include "lldb/Interpreter/Options.h"
14
15namespace lldb_private {
16
17// OptionGroupUUID
18
19class OptionGroupUUID : public OptionGroup {
20public:
21 OptionGroupUUID();
22
23 ~OptionGroupUUID() override;
24
25 llvm::ArrayRef<OptionDefinition> GetDefinitions() override;
26
27 Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_value,
28 ExecutionContext *execution_context) override;
29 Status SetOptionValue(uint32_t, const char *, ExecutionContext *) = delete;
30
31 void OptionParsingStarting(ExecutionContext *execution_context) override;
32
33 const OptionValueUUID &GetOptionValue() const { return m_uuid; }
34
35protected:
36 OptionValueUUID m_uuid;
37};
38
39} // namespace lldb_private
40
41#endif // liblldb_OptionGroupUUID_h_