First attempt and getting "const" C++ method function signatures correct.
It currently isn't working, but it should be close. I will work on this more
when I figure out what I am not doing correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@119324 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/ClangExpressionDeclMap.cpp b/source/Expression/ClangExpressionDeclMap.cpp
index 7e05940..4856015 100644
--- a/source/Expression/ClangExpressionDeclMap.cpp
+++ b/source/Expression/ClangExpressionDeclMap.cpp
@@ -1085,6 +1085,14 @@
if (!this_type)
return;
+ if (log)
+ {
+ log->PutCString ("Type for \"this\" is: ");
+ StreamString strm;
+ this_type->Dump(&strm, true);
+ log->PutCString (strm.GetData());
+ }
+
TypeFromUser this_user_type(this_type->GetClangType(),
this_type->GetClangAST());
@@ -1120,12 +1128,20 @@
m_lookedup_types.insert(std::pair<const char*, bool>(name_unique_cstr, true));
// 2 The type is looked up and added, potentially causing more type loookups.
- lldb::TypeSP type = m_sym_ctx.FindTypeByName (name);
+ lldb::TypeSP type_sp (m_sym_ctx.FindTypeByName (name));
- if (type.get())
+ if (type_sp)
{
- TypeFromUser user_type(type->GetClangType(),
- type->GetClangAST());
+ if (log)
+ {
+ log->Printf ("Matching type found for \"%s\": ", name.GetCString());
+ StreamString strm;
+ type_sp->Dump(&strm, true);
+ log->PutCString (strm.GetData());
+ }
+
+ TypeFromUser user_type(type_sp->GetClangType(),
+ type_sp->GetClangAST());
AddOneType(context, user_type, false);
}