Fixed template template example

This commit is contained in:
Bartek Kryza
2021-03-30 00:39:23 +02:00
parent 928e5f5baa
commit d25a252212
3 changed files with 11 additions and 8 deletions

View File

@@ -306,7 +306,10 @@ void tu_visitor::process_field(const cppast::cpp_member_variable &mv, class_ &c,
spdlog::debug(
"Processing field with unreferenced type of kind {}", tr.kind());
if (tr.kind() == cppast::cpp_type_kind::template_instantiation_t) {
if (tr.kind() == cppast::cpp_type_kind::builtin_t) {
spdlog::debug("Builtin type found for field: {}", m.name);
}
else if (tr.kind() == cppast::cpp_type_kind::template_instantiation_t) {
spdlog::debug("Processing field with template instatiation type {}",
cppast::to_string(tr));