Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:42:50

0001 //===-- OptionGroupMemoryTag.h ---------------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLDB_INTERPRETER_OPTIONGROUPMEMORYTAG_H
0010 #define LLDB_INTERPRETER_OPTIONGROUPMEMORYTAG_H
0011 
0012 #include "lldb/Interpreter/OptionValueBoolean.h"
0013 #include "lldb/Interpreter/Options.h"
0014 
0015 namespace lldb_private {
0016 
0017 class OptionGroupMemoryTag : public OptionGroup {
0018 public:
0019   OptionGroupMemoryTag(
0020       // Whether to note that --show-tags does not apply to binary output.
0021       // "memory read" wants this but "memory find" does not.
0022       bool note_binary = false);
0023 
0024   ~OptionGroupMemoryTag() override = default;
0025 
0026   llvm::ArrayRef<OptionDefinition> GetDefinitions() override;
0027 
0028   Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_value,
0029                         ExecutionContext *execution_context) override;
0030 
0031   void OptionParsingStarting(ExecutionContext *execution_context) override;
0032 
0033   bool AnyOptionWasSet() const { return m_show_tags.OptionWasSet(); }
0034 
0035   OptionValueBoolean GetShowTags() { return m_show_tags; };
0036 
0037 protected:
0038   OptionValueBoolean m_show_tags;
0039   OptionDefinition m_option_definition;
0040 };
0041 
0042 } // namespace lldb_private
0043 
0044 #endif // LLDB_INTERPRETER_OPTIONGROUPMEMORYTAG_H