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
12#include "lldb/Interpreter/OptionValueBoolean.h"
13#include "lldb/Interpreter/Options.h"
14
15namespace lldb_private {
16
17class OptionGroupMemoryTag : public OptionGroup {
18public:
19 OptionGroupMemoryTag(
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
35 OptionValueBoolean GetShowTags() { return m_show_tags; };
36
37protected:
38 OptionValueBoolean m_show_tags;
39 OptionDefinition m_option_definition;
40};
41
42} // namespace lldb_private
43
44#endif // LLDB_INTERPRETER_OPTIONGROUPMEMORYTAG_H
45

source code of lldb/include/lldb/Interpreter/OptionGroupMemoryTag.h