Fixed method result type generation
This commit is contained in:
@@ -130,7 +130,8 @@ public:
|
||||
if (m.type != "void")
|
||||
type = m.type + " ";
|
||||
|
||||
ostr << to_string(m.scope) << type << m.name;
|
||||
ostr << to_string(m.scope)
|
||||
<< ns_relative(m_config.using_namespace, type) << m.name;
|
||||
|
||||
ostr << "(";
|
||||
if (true) { // TODO: add option to disable parameter generation
|
||||
|
||||
@@ -452,8 +452,9 @@ static enum CXChildVisitResult class_visitor(
|
||||
clang_visitChildren(
|
||||
cursor.get(), method_parameter_visitor, &method_ctx);
|
||||
|
||||
spdlog::debug("Adding method {} {}::{}()", m.type,
|
||||
ctx->element.name, cursor.spelling());
|
||||
spdlog::debug("Adding method {} {}::{}()",
|
||||
cursor.type().result_type(), ctx->element.name,
|
||||
cursor.spelling());
|
||||
|
||||
ctx->element.methods.emplace_back(std::move(m));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user