1 //===-- OptionGroupVariable.h -----------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_OptionGroupVariable_h_
11 #define liblldb_OptionGroupVariable_h_
15 // Other libraries and framework includes
17 #include "lldb/Interpreter/OptionValueString.h"
18 #include "lldb/Interpreter/Options.h"
20 namespace lldb_private {
22 //-------------------------------------------------------------------------
23 // OptionGroupVariable
24 //-------------------------------------------------------------------------
26 class OptionGroupVariable : public OptionGroup {
28 OptionGroupVariable(bool show_frame_options);
30 ~OptionGroupVariable() override;
32 llvm::ArrayRef<OptionDefinition> GetDefinitions() override;
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;
38 void OptionParsingStarting(ExecutionContext *execution_context) override;
40 bool include_frame_options : 1,
41 show_args : 1, // Frame option only (include_frame_options == true)
42 show_locals : 1, // Frame option only (include_frame_options == true)
43 show_globals : 1, // Frame option only (include_frame_options == true)
44 use_regex : 1, show_scope : 1, show_decl : 1;
45 OptionValueString summary; // the name of a named summary
46 OptionValueString summary_string; // a summary string
49 DISALLOW_COPY_AND_ASSIGN(OptionGroupVariable);
52 } // namespace lldb_private
54 #endif // liblldb_OptionGroupVariable_h_