LLDB
mainline
llvm-project
lldb
include
lldb
Interpreter
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
12
#include "
lldb/Interpreter/CommandCompletions.h
"
13
#include "
lldb/Interpreter/OptionValue.h
"
14
#include "
lldb/Utility/FileSpec.h
"
15
#include "llvm/Support/Chrono.h"
16
17
namespace
lldb_private
{
18
19
class
OptionValueFileColonLine
:
20
public
Cloneable
<OptionValueFileColonLine, OptionValue> {
21
public
:
22
OptionValueFileColonLine
();
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,
34
VarSetOperationType
op =
eVarSetOperationAssign
)
override
;
35
36
void
Clear
()
override
{
37
m_file_spec
.
Clear
();
38
m_line_number
=
LLDB_INVALID_LINE_NUMBER
;
39
m_column_number
=
LLDB_INVALID_COLUMN_NUMBER
;
40
}
41
42
void
AutoComplete
(
CommandInterpreter
&interpreter,
43
CompletionRequest
&request)
override
;
44
45
FileSpec
&
GetFileSpec
() {
return
m_file_spec
; }
46
uint32_t
GetLineNumber
() {
return
m_line_number
; }
47
uint32_t
GetColumnNumber
() {
return
m_column_number
; }
48
49
void
SetCompletionMask
(uint32_t mask) {
m_completion_mask
= mask; }
50
51
protected
:
52
FileSpec
m_file_spec
;
53
uint32_t
m_line_number
=
LLDB_INVALID_LINE_NUMBER
;
54
uint32_t
m_column_number
=
LLDB_INVALID_COLUMN_NUMBER
;
55
uint32_t
m_completion_mask
=
lldb::eSourceFileCompletion
;
56
};
57
58
}
// namespace lldb_private
59
60
#endif
// LLDB_INTERPRETER_OPTIONVALUEFILECOLONLINE_H
CommandCompletions.h
FileSpec.h
OptionValue.h
lldb_private::Cloneable
A class that implements CRTP-based "virtual constructor" idiom.
Definition:
Cloneable.h:40
lldb_private::CommandInterpreter
Definition:
CommandInterpreter.h:231
lldb_private::CompletionRequest
"lldb/Utility/ArgCompletionRequest.h"
Definition:
CompletionRequest.h:100
lldb_private::ExecutionContext
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
Definition:
ExecutionContext.h:292
lldb_private::FileSpec
A file utility class.
Definition:
FileSpec.h:56
lldb_private::FileSpec::Clear
void Clear()
Clears the object state.
Definition:
FileSpec.cpp:259
lldb_private::OptionValueFileColonLine
Definition:
OptionValueFileColonLine.h:20
lldb_private::OptionValueFileColonLine::GetColumnNumber
uint32_t GetColumnNumber()
Definition:
OptionValueFileColonLine.h:47
lldb_private::OptionValueFileColonLine::m_column_number
uint32_t m_column_number
Definition:
OptionValueFileColonLine.h:54
lldb_private::OptionValueFileColonLine::DumpValue
void DumpValue(const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask) override
Definition:
OptionValueFileColonLine.cpp:32
lldb_private::OptionValueFileColonLine::m_file_spec
FileSpec m_file_spec
Definition:
OptionValueFileColonLine.h:52
lldb_private::OptionValueFileColonLine::AutoComplete
void AutoComplete(CommandInterpreter &interpreter, CompletionRequest &request) override
Definition:
OptionValueFileColonLine.cpp:133
lldb_private::OptionValueFileColonLine::SetValueFromString
Status SetValueFromString(llvm::StringRef value, VarSetOperationType op=eVarSetOperationAssign) override
Definition:
OptionValueFileColonLine.cpp:49
lldb_private::OptionValueFileColonLine::m_completion_mask
uint32_t m_completion_mask
Definition:
OptionValueFileColonLine.h:55
lldb_private::OptionValueFileColonLine::Clear
void Clear() override
Definition:
OptionValueFileColonLine.h:36
lldb_private::OptionValueFileColonLine::GetLineNumber
uint32_t GetLineNumber()
Definition:
OptionValueFileColonLine.h:46
lldb_private::OptionValueFileColonLine::~OptionValueFileColonLine
~OptionValueFileColonLine() override=default
lldb_private::OptionValueFileColonLine::GetType
OptionValue::Type GetType() const override
Definition:
OptionValueFileColonLine.h:27
lldb_private::OptionValueFileColonLine::m_line_number
uint32_t m_line_number
Definition:
OptionValueFileColonLine.h:53
lldb_private::OptionValueFileColonLine::SetCompletionMask
void SetCompletionMask(uint32_t mask)
Definition:
OptionValueFileColonLine.h:49
lldb_private::OptionValueFileColonLine::GetFileSpec
FileSpec & GetFileSpec()
Definition:
OptionValueFileColonLine.h:45
lldb_private::OptionValueFileColonLine::OptionValueFileColonLine
OptionValueFileColonLine()
lldb_private::OptionValue::Type
Type
Definition:
OptionValue.h:33
lldb_private::OptionValue::eTypeFileLineColumn
@ eTypeFileLineColumn
Definition:
OptionValue.h:42
lldb_private::Status
An error handling class.
Definition:
Status.h:44
lldb_private::Stream
A stream class that can stream formatted output to a file.
Definition:
Stream.h:28
LLDB_INVALID_LINE_NUMBER
#define LLDB_INVALID_LINE_NUMBER
Definition:
lldb-defines.h:94
LLDB_INVALID_COLUMN_NUMBER
#define LLDB_INVALID_COLUMN_NUMBER
Definition:
lldb-defines.h:95
lldb_private
A class that represents a running process on the host machine.
Definition:
SBAddressRange.h:14
lldb_private::VarSetOperationType
VarSetOperationType
Settable state variable types.
Definition:
lldb-private-enumerations.h:85
lldb_private::eVarSetOperationAssign
@ eVarSetOperationAssign
Definition:
lldb-private-enumerations.h:92
lldb::eSourceFileCompletion
@ eSourceFileCompletion
Definition:
lldb-enumerations.h:1284
Generated on Wed Nov 20 2024 18:14:35 for LLDB by
1.9.6