Go to the documentation of this file.
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(); }
193 #endif // LLDB_SYMBOL_DECLARATION_H
void SetLine(uint32_t line)
Set accessor for the declaration line number.
FileSpec m_file
The file specification that points to the source file where the declaration occurred.
#define LLDB_INVALID_COLUMN_NUMBER
uint32_t m_line
Non-zero values indicates a valid line number, zero indicates no line number information is available...
FileSpec & GetFile()
Get accessor for file specification.
uint16_t GetColumn() const
Get accessor for the declaration column number.
bool operator==(const Address &lhs, const Address &rhs)
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.
bool DumpStopContext(Stream *s, bool show_fullpaths) const
size_t MemorySize() const
Get the memory cost of this object.
void SetFile(const FileSpec &file_spec)
Set accessor for the declaration file specification.
#define LLDB_INVALID_LINE_NUMBER
void Clear()
Clears the object state.
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.
void Clear()
Clear the object's state.
uint32_t GetLine() const
Get accessor for the declaration line number.
bool FileAndLineEqual(const Declaration &declaration) const
Checks if this object has the same file and line as another declaration object.
Declaration(const Declaration *decl_ptr)
Construct with a pointer to another Declaration object.
const FileSpec & GetFile() const
Get const accessor for file specification.
A class that represents a running process on the host machine.
Declaration()=default
Default constructor.
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.