Back to home page

EIC code displayed by LXR

 
 

    


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

0001 //===-- OptionGroupUInt64.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_OPTIONGROUPUINT64_H
0010 #define LLDB_INTERPRETER_OPTIONGROUPUINT64_H
0011 
0012 #include "lldb/Interpreter/OptionValueUInt64.h"
0013 #include "lldb/Interpreter/Options.h"
0014 
0015 namespace lldb_private {
0016 
0017 // OptionGroupUInt64
0018 
0019 class OptionGroupUInt64 : public OptionGroup {
0020 public:
0021   OptionGroupUInt64(uint32_t usage_mask, bool required, const char *long_option,
0022                     int short_option, uint32_t completion_type,
0023                     lldb::CommandArgumentType argument_type,
0024                     const char *usage_text, uint64_t default_value);
0025 
0026   ~OptionGroupUInt64() override = default;
0027 
0028   llvm::ArrayRef<OptionDefinition> GetDefinitions() override {
0029     return llvm::ArrayRef<OptionDefinition>(&m_option_definition, 1);
0030   }
0031 
0032   Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_value,
0033                         ExecutionContext *execution_context) override;
0034 
0035   void OptionParsingStarting(ExecutionContext *execution_context) override;
0036 
0037   OptionValueUInt64 &GetOptionValue() { return m_value; }
0038 
0039   const OptionValueUInt64 &GetOptionValue() const { return m_value; }
0040 
0041 protected:
0042   OptionValueUInt64 m_value;
0043   OptionDefinition m_option_definition;
0044 };
0045 
0046 } // namespace lldb_private
0047 
0048 #endif // LLDB_INTERPRETER_OPTIONGROUPUINT64_H