11#include "llvm/ADT/StringExtras.h"
18 std::optional<uint16_t> column,
19 bool check_inlines,
bool exact_match)
20 : m_declaration(file_spec, line,
22 m_check_inlines(check_inlines), m_exact_match(exact_match) {}
24SourceLocationSpec::operator bool()
const {
return m_declaration.IsValid(); }
35 return !(*
this == rhs);
54 return full ? lhs == rhs
uint32_t GetLine() const
Get accessor for the declaration line number.
uint16_t GetColumn() const
Get accessor for the declaration column number.
void Dump(Stream *s, bool show_fullpaths) const
Dump a description of this object to a Stream.
static int Compare(const Declaration &lhs, const Declaration &rhs)
Compare two declaration objects.
"lldb/Core/SourceLocationSpec.h" A source location specifier class.
std::optional< uint32_t > GetLine() const
static bool Equal(const SourceLocationSpec &lhs, const SourceLocationSpec &rhs, bool full)
bool operator!=(const SourceLocationSpec &rhs) const
Not equal to operator.
std::string GetString() const
Declaration m_declaration
bool operator<(const SourceLocationSpec &rhs) const
Less than to operator.
bool GetCheckInlines() const
SourceLocationSpec()=delete
bool m_check_inlines
Tells if the resolver should look in inlined declaration.
std::optional< uint16_t > GetColumn() const
bool operator!() const
Logical NOT operator.
bool operator==(const SourceLocationSpec &rhs) const
Equal to operator.
void Dump(Stream &s) const
Dump this object to a Stream.
FileSpec GetFileSpec() const
bool m_exact_match
Tells if the resolver should look for an exact match.
static int Compare(const SourceLocationSpec &lhs, const SourceLocationSpec &rhs)
Compare two SourceLocationSpec objects.
bool GetExactMatch() const
llvm::StringRef GetString() const
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.
Stream & operator<<(Stream &s, const Mangled &obj)