LLDB
mainline
llvm-project
lldb
include
lldb
Interpreter
OptionGroupBoolean.h
Go to the documentation of this file.
1
//===-- OptionGroupBoolean.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
9
#ifndef LLDB_INTERPRETER_OPTIONGROUPBOOLEAN_H
10
#define LLDB_INTERPRETER_OPTIONGROUPBOOLEAN_H
11
12
#include "
lldb/Interpreter/OptionValueBoolean.h
"
13
#include "
lldb/Interpreter/Options.h
"
14
15
namespace
lldb_private
{
16
// OptionGroupBoolean
17
18
class
OptionGroupBoolean
:
public
OptionGroup
{
19
public
:
20
// When 'no_argument_toggle_default' is true, then setting the option value
21
// does NOT require an argument, it sets the boolean value to the inverse of
22
// the default value
23
OptionGroupBoolean
(uint32_t usage_mask,
bool
required,
24
const
char
*long_option,
int
short_option,
25
const
char
*usage_text,
bool
default_value,
26
bool
no_argument_toggle_default);
27
28
~OptionGroupBoolean
()
override
=
default
;
29
30
llvm::ArrayRef<OptionDefinition>
GetDefinitions
()
override
{
31
return
llvm::ArrayRef<OptionDefinition>(&
m_option_definition
, 1);
32
}
33
34
Status
SetOptionValue
(uint32_t option_idx, llvm::StringRef option_value,
35
ExecutionContext
*execution_context)
override
;
36
37
void
OptionParsingStarting
(
ExecutionContext
*execution_context)
override
;
38
39
OptionValueBoolean
&
GetOptionValue
() {
return
m_value
; }
40
41
const
OptionValueBoolean
&
GetOptionValue
()
const
{
return
m_value
; }
42
43
protected
:
44
OptionValueBoolean
m_value
;
45
OptionDefinition
m_option_definition
;
46
};
47
48
}
// namespace lldb_private
49
50
#endif
// LLDB_INTERPRETER_OPTIONGROUPBOOLEAN_H
OptionValueBoolean.h
Options.h
lldb_private::ExecutionContext
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
Definition:
ExecutionContext.h:292
lldb_private::OptionGroupBoolean
Definition:
OptionGroupBoolean.h:18
lldb_private::OptionGroupBoolean::OptionParsingStarting
void OptionParsingStarting(ExecutionContext *execution_context) override
Definition:
OptionGroupBoolean.cpp:51
lldb_private::OptionGroupBoolean::m_value
OptionValueBoolean m_value
Definition:
OptionGroupBoolean.h:44
lldb_private::OptionGroupBoolean::GetOptionValue
OptionValueBoolean & GetOptionValue()
Definition:
OptionGroupBoolean.h:39
lldb_private::OptionGroupBoolean::GetDefinitions
llvm::ArrayRef< OptionDefinition > GetDefinitions() override
Definition:
OptionGroupBoolean.h:30
lldb_private::OptionGroupBoolean::~OptionGroupBoolean
~OptionGroupBoolean() override=default
lldb_private::OptionGroupBoolean::m_option_definition
OptionDefinition m_option_definition
Definition:
OptionGroupBoolean.h:45
lldb_private::OptionGroupBoolean::SetOptionValue
Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_value, ExecutionContext *execution_context) override
Definition:
OptionGroupBoolean.cpp:36
lldb_private::OptionGroupBoolean::GetOptionValue
const OptionValueBoolean & GetOptionValue() const
Definition:
OptionGroupBoolean.h:41
lldb_private::OptionGroup
Definition:
Options.h:234
lldb_private::OptionValueBoolean
Definition:
OptionValueBoolean.h:16
lldb_private::Status
An error handling class.
Definition:
Status.h:44
lldb_private
A class that represents a running process on the host machine.
Definition:
SBAddressRange.h:14
lldb_private::OptionDefinition
Definition:
OptionDefinition.h:20
Generated on Tue Dec 3 2024 06:26:27 for LLDB by
1.9.6