summaryrefslogtreecommitdiff
path: root/include/lldb/Core/Mangled.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/lldb/Core/Mangled.h')
-rw-r--r--include/lldb/Core/Mangled.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/include/lldb/Core/Mangled.h b/include/lldb/Core/Mangled.h
index a2a2b5591d0f..6d8d8c4a0da7 100644
--- a/include/lldb/Core/Mangled.h
+++ b/include/lldb/Core/Mangled.h
@@ -182,8 +182,17 @@ public:
/// A const reference to the demangled name string object.
//----------------------------------------------------------------------
const ConstString&
- GetDemangledName () const;
+ GetDemangledName (lldb::LanguageType language) const;
+ //----------------------------------------------------------------------
+ /// Display demangled name get accessor.
+ ///
+ /// @return
+ /// A const reference to the display demangled name string object.
+ //----------------------------------------------------------------------
+ ConstString
+ GetDisplayDemangledName (lldb::LanguageType language) const;
+
void
SetDemangledName (const ConstString &name)
{
@@ -231,8 +240,8 @@ public:
/// object has a valid name of that kind, else a const reference to the
/// other name is returned.
//----------------------------------------------------------------------
- const ConstString&
- GetName (NamePreference preference = ePreferDemangled) const;
+ ConstString
+ GetName (lldb::LanguageType language, NamePreference preference = ePreferDemangled) const;
//----------------------------------------------------------------------
/// Check if "name" matches either the mangled or demangled name.
@@ -244,15 +253,15 @@ public:
/// \b True if \a name matches either name, \b false otherwise.
//----------------------------------------------------------------------
bool
- NameMatches (const ConstString &name) const
+ NameMatches (const ConstString &name, lldb::LanguageType language) const
{
if (m_mangled == name)
return true;
- return GetDemangledName () == name;
+ return GetDemangledName (language) == name;
}
bool
- NameMatches (const RegularExpression& regex) const;
+ NameMatches (const RegularExpression& regex, lldb::LanguageType language) const;
//----------------------------------------------------------------------
/// Get the memory cost of this object.