]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/include/lldb/Interpreter/OptionGroupUUID.h
Merge compiler-rt trunk r321017 to contrib/compiler-rt.
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / include / lldb / Interpreter / OptionGroupUUID.h
1 //===-- OptionGroupUUID.h ---------------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef liblldb_OptionGroupUUID_h_
11 #define liblldb_OptionGroupUUID_h_
12
13 // C Includes
14 // C++ Includes
15 // Other libraries and framework includes
16 // Project includes
17 #include "lldb/Interpreter/OptionValueUUID.h"
18 #include "lldb/Interpreter/Options.h"
19
20 namespace lldb_private {
21
22 //-------------------------------------------------------------------------
23 // OptionGroupUUID
24 //-------------------------------------------------------------------------
25
26 class OptionGroupUUID : public OptionGroup {
27 public:
28   OptionGroupUUID();
29
30   ~OptionGroupUUID() override;
31
32   llvm::ArrayRef<OptionDefinition> GetDefinitions() override;
33
34   Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_value,
35                         ExecutionContext *execution_context) override;
36   Status SetOptionValue(uint32_t, const char *, ExecutionContext *) = delete;
37
38   void OptionParsingStarting(ExecutionContext *execution_context) override;
39
40   const OptionValueUUID &GetOptionValue() const { return m_uuid; }
41
42 protected:
43   OptionValueUUID m_uuid;
44 };
45
46 } // namespace lldb_private
47
48 #endif // liblldb_OptionGroupUUID_h_