blob: 252ca3b42c5efb3215aa004bef7306ea91b956ac [file] [log] [blame]
Andrew Walbran3d2c1972020-04-07 12:24:26 +01001//===-- OptionGroupVariable.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
Olivier Deprezf4ef2d02021-04-20 13:36:24 +02009#ifndef LLDB_INTERPRETER_OPTIONGROUPVARIABLE_H
10#define LLDB_INTERPRETER_OPTIONGROUPVARIABLE_H
Andrew Walbran3d2c1972020-04-07 12:24:26 +010011
12#include "lldb/Interpreter/OptionValueString.h"
13#include "lldb/Interpreter/Options.h"
14
15namespace lldb_private {
16
17// OptionGroupVariable
18
19class OptionGroupVariable : public OptionGroup {
20public:
21 OptionGroupVariable(bool show_frame_options);
22
23 ~OptionGroupVariable() 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 bool include_frame_options : 1,
34 show_args : 1, // Frame option only (include_frame_options == true)
35 show_recognized_args : 1, // Frame option only (include_frame_options ==
36 // true)
37 show_locals : 1, // Frame option only (include_frame_options == true)
38 show_globals : 1, // Frame option only (include_frame_options == true)
39 use_regex : 1, show_scope : 1, show_decl : 1;
40 OptionValueString summary; // the name of a named summary
41 OptionValueString summary_string; // a summary string
42
43private:
Olivier Deprezf4ef2d02021-04-20 13:36:24 +020044 OptionGroupVariable(const OptionGroupVariable &) = delete;
45 const OptionGroupVariable &operator=(const OptionGroupVariable &) = delete;
Andrew Walbran3d2c1972020-04-07 12:24:26 +010046};
47
48} // namespace lldb_private
49
Olivier Deprezf4ef2d02021-04-20 13:36:24 +020050#endif // LLDB_INTERPRETER_OPTIONGROUPVARIABLE_H