return;
AddContextClassType(context, TypeFromUser(m_ctx_obj->GetCompilerType()));
-
- m_struct_vars->m_object_pointer_type =
- TypeFromUser(ctx_obj_ptr->GetCompilerType());
-
return;
}
class_qual_type.getAsString());
AddContextClassType(context, class_user_type);
-
- if (method_decl->isInstance()) {
- // self is a pointer to the object
-
- QualType class_pointer_type =
- method_decl->getASTContext().getPointerType(class_qual_type);
-
- TypeFromUser self_user_type(class_pointer_type.getAsOpaquePtr(),
- function_decl_ctx.GetTypeSystem());
-
- m_struct_vars->m_object_pointer_type = self_user_type;
- }
return;
}
ClangUtil::GetQualType(pointee_type).getAsString());
AddContextClassType(context, pointee_type);
- TypeFromUser this_user_type(this_type->GetFullCompilerType());
- m_struct_vars->m_object_pointer_type = this_user_type;
}
}
return;
AddOneType(context, TypeFromUser(m_ctx_obj->GetCompilerType()));
-
- m_struct_vars->m_object_pointer_type =
- TypeFromUser(ctx_obj_ptr->GetCompilerType());
-
return;
}
ClangUtil::ToString(interface_type));
AddOneType(context, class_user_type);
-
- if (method_decl->isInstanceMethod()) {
- // self is a pointer to the object
-
- QualType class_pointer_type =
- method_decl->getASTContext().getObjCObjectPointerType(
- QualType(interface_type, 0));
-
- TypeFromUser self_user_type(class_pointer_type.getAsOpaquePtr(),
- function_decl_ctx.GetTypeSystem());
-
- m_struct_vars->m_object_pointer_type = self_user_type;
- } else {
- // self is a Class pointer
- QualType class_type = method_decl->getASTContext().getObjCClassType();
-
- TypeFromUser self_user_type(class_type.getAsOpaquePtr(),
- function_decl_ctx.GetTypeSystem());
-
- m_struct_vars->m_object_pointer_type = self_user_type;
- }
-
return;
}
// This branch will get hit if we are executing code in the context of
TypeFromUser class_user_type(self_clang_type);
AddOneType(context, class_user_type);
-
- TypeFromUser self_user_type(self_type->GetFullCompilerType());
-
- m_struct_vars->m_object_pointer_type = self_user_type;
}
void ClangExpressionDeclMap::LookupLocalVarNamespace(
/// The following values contain layout information for the materialized
/// struct, but are not specific to a single materialization
struct StructVars {
- StructVars() : m_result_name(), m_object_pointer_type(nullptr, nullptr) {}
+ StructVars() = default;
lldb::offset_t m_struct_alignment =
0; ///< The alignment of the struct in bytes.
/// added since).
ConstString
m_result_name; ///< The name of the result variable ($1, for example)
- TypeFromUser m_object_pointer_type; ///< The type of the "this" variable, if
- ///one exists
};
std::unique_ptr<StructVars> m_struct_vars;