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
15#include "llvm/Support/Chrono.h"
16
17namespace lldb_private {
18
20 public Cloneable<OptionValueFileColonLine, OptionValue> {
21public:
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
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
51protected:
56};
57
58} // namespace lldb_private
59
60#endif // LLDB_INTERPRETER_OPTIONVALUEFILECOLONLINE_H
A class that implements CRTP-based "virtual constructor" idiom.
Definition: Cloneable.h:40
"lldb/Utility/ArgCompletionRequest.h"
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
A file utility class.
Definition: FileSpec.h:56
void Clear()
Clears the object state.
Definition: FileSpec.cpp:259
void DumpValue(const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask) override
void AutoComplete(CommandInterpreter &interpreter, CompletionRequest &request) override
Status SetValueFromString(llvm::StringRef value, VarSetOperationType op=eVarSetOperationAssign) override
~OptionValueFileColonLine() override=default
OptionValue::Type GetType() const override
An error handling class.
Definition: Status.h:44
A stream class that can stream formatted output to a file.
Definition: Stream.h:28
#define LLDB_INVALID_LINE_NUMBER
Definition: lldb-defines.h:94
#define LLDB_INVALID_COLUMN_NUMBER
Definition: lldb-defines.h:95
A class that represents a running process on the host machine.
VarSetOperationType
Settable state variable types.
@ eSourceFileCompletion