Fixed method result type generation

This commit is contained in:
Bartek Kryza
2021-03-18 21:02:33 +01:00
parent 3c0e9d51d2
commit d55e57eb05
3 changed files with 12 additions and 4 deletions

View File

@@ -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));
});