Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
lldb/include/lldb/Core/Mangled.h
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | bool operator==(const Mangled &rhs) const { | ||||
return m_mangled == rhs.m_mangled && | return m_mangled == rhs.m_mangled && | ||||
GetDemangledName() == rhs.GetDemangledName(); | GetDemangledName() == rhs.GetDemangledName(); | ||||
} | } | ||||
bool operator!=(const Mangled &rhs) const { | bool operator!=(const Mangled &rhs) const { | ||||
return !(*this == rhs); | return !(*this == rhs); | ||||
} | } | ||||
/// Convert to pointer operator. | /// Convert to bool operator. | ||||
/// | /// | ||||
/// This allows code to check a Mangled object to see if it contains a valid | /// This allows code to check any Mangled objects to see if they contain | ||||
/// mangled name using code such as: | /// anything valid using code such as: | ||||
/// | /// | ||||
/// \code | /// \code | ||||
/// Mangled mangled(...); | /// Mangled mangled(...); | ||||
/// if (mangled) | /// if (mangled) | ||||
/// { ... | /// { ... | ||||
/// \endcode | /// \endcode | ||||
/// | /// | ||||
/// \return | /// \return | ||||
/// A pointer to this object if either the mangled or unmangled | /// Returns \b true if either the mangled or unmangled name is set, | ||||
/// name is set, NULL otherwise. | /// \b false if the object has an empty mangled and unmangled name. | ||||
operator void *() const; | explicit operator bool() const; | ||||
/// Logical NOT operator. | |||||
/// | |||||
/// This allows code to check a Mangled object to see if it contains an | |||||
/// empty mangled name using code such as: | |||||
/// | |||||
/// \code | |||||
/// Mangled mangled(...); | |||||
/// if (!mangled) | |||||
/// { ... | |||||
/// \endcode | |||||
/// | |||||
/// \return | |||||
/// Returns \b true if the object has an empty mangled and | |||||
/// unmangled name, \b false otherwise. | |||||
bool operator!() const; | |||||
/// Clear the mangled and demangled values. | /// Clear the mangled and demangled values. | ||||
void Clear(); | void Clear(); | ||||
/// Compare the mangled string values | /// Compare the mangled string values | ||||
/// | /// | ||||
/// Compares the Mangled::GetName() string in \a lhs and \a rhs. | /// Compares the Mangled::GetName() string in \a lhs and \a rhs. | ||||
/// | /// | ||||
▲ Show 20 Lines • Show All 209 Lines • Show Last 20 Lines |