]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/include/lldb/Interpreter/OptionGroupVariable.h
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / include / lldb / Interpreter / OptionGroupVariable.h
1 //===-- OptionGroupVariable.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_OptionGroupVariable_h_
11 #define liblldb_OptionGroupVariable_h_
12
13 #include "lldb/Interpreter/OptionValueString.h"
14 #include "lldb/Interpreter/Options.h"
15
16 namespace lldb_private {
17
18 //-------------------------------------------------------------------------
19 // OptionGroupVariable
20 //-------------------------------------------------------------------------
21
22 class OptionGroupVariable : public OptionGroup {
23 public:
24   OptionGroupVariable(bool show_frame_options);
25
26   ~OptionGroupVariable() 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   bool include_frame_options : 1,
37       show_args : 1,    // Frame option only (include_frame_options == true)
38       show_recognized_args : 1,  // Frame option only (include_frame_options ==
39                                  // true)
40       show_locals : 1,  // Frame option only (include_frame_options == true)
41       show_globals : 1, // Frame option only (include_frame_options == true)
42       use_regex : 1, show_scope : 1, show_decl : 1;
43   OptionValueString summary;        // the name of a named summary
44   OptionValueString summary_string; // a summary string
45
46 private:
47   DISALLOW_COPY_AND_ASSIGN(OptionGroupVariable);
48 };
49
50 } // namespace lldb_private
51
52 #endif // liblldb_OptionGroupVariable_h_