LLDB  mainline
OptionValueFileColonLine.h
Go to the documentation of this file.
1 //===-- OptionValueFileColonLine.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_OPTIONVALUEFILECOLONLINE_H
10 #define LLDB_INTERPRETER_OPTIONVALUEFILECOLONLINE_H
11 
14 #include "lldb/Utility/FileSpec.h"
15 #include "llvm/Support/Chrono.h"
16 
17 namespace lldb_private {
18 
20  public Cloneable<OptionValueFileColonLine, OptionValue> {
21 public:
23  OptionValueFileColonLine(const llvm::StringRef input);
24 
25  ~OptionValueFileColonLine() override = default;
26 
27  OptionValue::Type GetType() const override { return eTypeFileLineColumn; }
28 
29  void DumpValue(const ExecutionContext *exe_ctx, Stream &strm,
30  uint32_t dump_mask) override;
31 
32  Status
33  SetValueFromString(llvm::StringRef value,
35 
36  void Clear() override {
40  }
41 
42  void AutoComplete(CommandInterpreter &interpreter,
43  CompletionRequest &request) override;
44 
48 
50 
51 protected:
56 };
57 
58 } // namespace lldb_private
59 
60 #endif // LLDB_INTERPRETER_OPTIONVALUEFILECOLONLINE_H
lldb_private::OptionValueFileColonLine::~OptionValueFileColonLine
~OptionValueFileColonLine() override=default
lldb_private::ExecutionContext
Definition: ExecutionContext.h:292
LLDB_INVALID_COLUMN_NUMBER
#define LLDB_INVALID_COLUMN_NUMBER
Definition: lldb-defines.h:99
lldb_private::OptionValueFileColonLine::m_file_spec
FileSpec m_file_spec
Definition: OptionValueFileColonLine.h:52
lldb_private::OptionValueFileColonLine::GetType
OptionValue::Type GetType() const override
Definition: OptionValueFileColonLine.h:27
lldb_private::Stream
Definition: Stream.h:28
lldb_private::Cloneable
Definition: Cloneable.h:40
OptionValue.h
lldb_private::OptionValueFileColonLine::GetLineNumber
uint32_t GetLineNumber()
Definition: OptionValueFileColonLine.h:46
lldb_private::FileSpec
Definition: FileSpec.h:56
lldb_private::VarSetOperationType
VarSetOperationType
Settable state variable types.
Definition: lldb-private-enumerations.h:83
lldb_private::OptionValueFileColonLine::Clear
void Clear() override
Definition: OptionValueFileColonLine.h:36
lldb_private::CommandCompletions::eSourceFileCompletion
@ eSourceFileCompletion
Definition: CommandCompletions.h:29
lldb_private::OptionValue::eTypeFileLineColumn
@ eTypeFileLineColumn
Definition: OptionValue.h:35
lldb_private::OptionValueFileColonLine::DumpValue
void DumpValue(const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask) override
Definition: OptionValueFileColonLine.cpp:33
lldb_private::OptionValueFileColonLine::GetColumnNumber
uint32_t GetColumnNumber()
Definition: OptionValueFileColonLine.h:47
lldb_private::CommandInterpreter
Definition: CommandInterpreter.h:214
lldb_private::OptionValueFileColonLine::SetValueFromString
Status SetValueFromString(llvm::StringRef value, VarSetOperationType op=eVarSetOperationAssign) override
Definition: OptionValueFileColonLine.cpp:50
LLDB_INVALID_LINE_NUMBER
#define LLDB_INVALID_LINE_NUMBER
Definition: lldb-defines.h:98
lldb_private::FileSpec::Clear
void Clear()
Clears the object state.
Definition: FileSpec.cpp:261
lldb_private::OptionValueFileColonLine::m_column_number
uint32_t m_column_number
Definition: OptionValueFileColonLine.h:54
lldb_private::Status
Definition: Status.h:44
lldb_private::OptionValueFileColonLine
Definition: OptionValueFileColonLine.h:19
lldb_private::OptionValue::Type
Type
Definition: OptionValue.h:26
lldb_private::OptionValueFileColonLine::SetCompletionMask
void SetCompletionMask(uint32_t mask)
Definition: OptionValueFileColonLine.h:49
uint32_t
lldb_private::OptionValueFileColonLine::AutoComplete
void AutoComplete(CommandInterpreter &interpreter, CompletionRequest &request) override
Definition: OptionValueFileColonLine.cpp:134
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::OptionValueFileColonLine::m_line_number
uint32_t m_line_number
Definition: OptionValueFileColonLine.h:53
FileSpec.h
lldb_private::OptionValueFileColonLine::m_completion_mask
uint32_t m_completion_mask
Definition: OptionValueFileColonLine.h:55
lldb_private::OptionValueFileColonLine::GetFileSpec
FileSpec & GetFileSpec()
Definition: OptionValueFileColonLine.h:45
CommandCompletions.h
lldb_private::CompletionRequest
Definition: CompletionRequest.h:100
lldb_private::eVarSetOperationAssign
@ eVarSetOperationAssign
Definition: lldb-private-enumerations.h:90
lldb_private::OptionValueFileColonLine::OptionValueFileColonLine
OptionValueFileColonLine()