LLDB  mainline
OptionGroupMemoryTag.h
Go to the documentation of this file.
1 //===-- OptionGroupMemoryTag.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_OPTIONGROUPMEMORYTAG_H
10 #define LLDB_INTERPRETER_OPTIONGROUPMEMORYTAG_H
11 
14 
15 namespace lldb_private {
16 
18 public:
20  // Whether to note that --show-tags does not apply to binary output.
21  // "memory read" wants this but "memory find" does not.
22  bool note_binary = false);
23 
24  ~OptionGroupMemoryTag() override = default;
25 
26  llvm::ArrayRef<OptionDefinition> GetDefinitions() override;
27 
28  Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_value,
29  ExecutionContext *execution_context) override;
30 
31  void OptionParsingStarting(ExecutionContext *execution_context) override;
32 
33  bool AnyOptionWasSet() const { return m_show_tags.OptionWasSet(); }
34 
36 
37 protected:
40 };
41 
42 } // namespace lldb_private
43 
44 #endif // LLDB_INTERPRETER_OPTIONGROUPMEMORYTAG_H
lldb_private::ExecutionContext
Definition: ExecutionContext.h:292
lldb_private::OptionValue::OptionWasSet
bool OptionWasSet() const
Definition: OptionValue.h:303
lldb_private::OptionGroupMemoryTag::OptionGroupMemoryTag
OptionGroupMemoryTag(bool note_binary=false)
Definition: OptionGroupMemoryTag.cpp:18
lldb_private::OptionGroupMemoryTag::m_option_definition
OptionDefinition m_option_definition
Definition: OptionGroupMemoryTag.h:39
lldb_private::OptionValueBoolean
Definition: OptionValueBoolean.h:16
lldb_private::OptionGroup
Definition: Options.h:233
lldb_private::OptionGroupMemoryTag::~OptionGroupMemoryTag
~OptionGroupMemoryTag() override=default
lldb_private::OptionGroupMemoryTag::SetOptionValue
Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_value, ExecutionContext *execution_context) override
Definition: OptionGroupMemoryTag.cpp:39
Options.h
lldb_private::OptionGroupMemoryTag::OptionParsingStarting
void OptionParsingStarting(ExecutionContext *execution_context) override
Definition: OptionGroupMemoryTag.cpp:57
lldb_private::OptionGroupMemoryTag::GetDefinitions
llvm::ArrayRef< OptionDefinition > GetDefinitions() override
Definition: OptionGroupMemoryTag.cpp:34
lldb_private::OptionGroupMemoryTag::m_show_tags
OptionValueBoolean m_show_tags
Definition: OptionGroupMemoryTag.h:35
lldb_private::Status
Definition: Status.h:44
uint32_t
lldb_private::OptionGroupMemoryTag::AnyOptionWasSet
bool AnyOptionWasSet() const
Definition: OptionGroupMemoryTag.h:33
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::OptionGroupMemoryTag::GetShowTags
OptionValueBoolean GetShowTags()
Definition: OptionGroupMemoryTag.h:35
lldb_private::OptionDefinition
Definition: OptionDefinition.h:20
OptionValueBoolean.h
lldb_private::OptionGroupMemoryTag
Definition: OptionGroupMemoryTag.h:17