]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/include/lldb/Interpreter/OptionGroupUUID.h
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[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 #include "lldb/Interpreter/OptionValueUUID.h"
14 #include "lldb/Interpreter/Options.h"
15
16 namespace lldb_private {
17
18 //-------------------------------------------------------------------------
19 // OptionGroupUUID
20 //-------------------------------------------------------------------------
21
22 class OptionGroupUUID : public OptionGroup {
23 public:
24   OptionGroupUUID();
25
26   ~OptionGroupUUID() override;
27
28   llvm::ArrayRef<OptionDefinition> GetDefinitions() override;
29
30   Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_value,
31                         ExecutionContext *execution_context) override;
32   Status SetOptionValue(uint32_t, const char *, ExecutionContext *) = delete;
33
34   void OptionParsingStarting(ExecutionContext *execution_context) override;
35
36   const OptionValueUUID &GetOptionValue() const { return m_uuid; }
37
38 protected:
39   OptionValueUUID m_uuid;
40 };
41
42 } // namespace lldb_private
43
44 #endif // liblldb_OptionGroupUUID_h_