Added handling of template template class template arguments

This commit is contained in:
Bartek Kryza
2021-03-06 21:15:04 +01:00
parent 25254fc81d
commit 77f24b5360
3 changed files with 21 additions and 4 deletions

View File

@@ -305,11 +305,18 @@ static enum CXChildVisitResult class_visitor(
ret = CXChildVisit_Continue;
} break;
case CXCursor_TemplateTemplateParameter:
spdlog::info(
"Found template template parameter: {}", cursor.spelling());
case CXCursor_TemplateTemplateParameter: {
spdlog::info("Found template template parameter: {}: {}",
cursor.spelling(), cursor.type());
class_template ct;
ct.type = "";
ct.name = cursor.spelling() + "<>";
ct.default_value = "";
ctx->element.templates.emplace_back(std::move(ct));
ret = CXChildVisit_Continue;
break;
} break;
case CXCursor_CXXMethod:
case CXCursor_Constructor:
case CXCursor_Destructor: