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, \b | ||||
/// name is set, NULL otherwise. | /// false otherwise. | ||||
operator void *() const; | explicit operator bool() const; | ||||
/// Logical NOT operator. | /// Logical NOT operator. | ||||
/// | /// | ||||
/// This allows code to check a Mangled object to see if it contains an | /// This allows code to check any Mangled objects to see if they are invalid | ||||
/// empty mangled name using code such as: | /// using code such as: | ||||
/// | /// | ||||
/// \code | /// \code | ||||
/// Mangled mangled(...); | /// Mangled mangled(...); | ||||
/// if (!mangled) | /// if (!mangled) | ||||
/// { ... | /// { ... | ||||
/// \endcode | /// \endcode | ||||
/// | /// | ||||
/// \return | /// \return | ||||
▲ Show 20 Lines • Show All 220 Lines • Show Last 20 Lines |