9#ifndef LLDB_SYMBOL_DECLARATION_H
10#define LLDB_SYMBOL_DECLARATION_H
99 void Dump(
Stream *s,
bool show_fullpaths)
const;
143 explicit operator bool()
const {
return IsValid(); }
A class that describes the declaration location of a lldb object.
FileSpec m_file
The file specification that points to the source file where the declaration occurred.
Declaration(const FileSpec &file_spec, uint32_t line=0, uint16_t column=LLDB_INVALID_COLUMN_NUMBER)
Construct with file specification, and optional line and column.
bool FileAndLineEqual(const Declaration &declaration) const
Checks if this object has the same file and line as another declaration object.
uint32_t GetLine() const
Get accessor for the declaration line number.
size_t MemorySize() const
Get the memory cost of this object.
uint16_t GetColumn() const
Get accessor for the declaration column number.
void SetLine(uint32_t line)
Set accessor for the declaration line number.
void Dump(Stream *s, bool show_fullpaths) const
Dump a description of this object to a Stream.
void SetColumn(uint16_t column)
Set accessor for the declaration column number.
void Clear()
Clear the object's state.
void SetFile(const FileSpec &file_spec)
Set accessor for the declaration file specification.
uint32_t m_line
Non-zero values indicates a valid line number, zero indicates no line number information is available...
uint16_t m_column
Non-zero values indicates a valid column number, zero indicates no column information is available.
static int Compare(const Declaration &lhs, const Declaration &rhs)
Compare two declaration objects.
const FileSpec & GetFile() const
Get const accessor for file specification.
Declaration()=default
Default constructor.
Declaration(const Declaration *decl_ptr)
Construct with a pointer to another Declaration object.
bool DumpStopContext(Stream *s, bool show_fullpaths) const
FileSpec & GetFile()
Get accessor for file specification.
void Clear()
Clears the object state.
A stream class that can stream formatted output to a file.
#define LLDB_INVALID_LINE_NUMBER
#define LLDB_INVALID_COLUMN_NUMBER
A class that represents a running process on the host machine.
bool operator==(const Address &lhs, const Address &rhs)