Fixed handling of C99 typedef structs (#138)

This commit is contained in:
Bartek Kryza
2023-05-11 19:52:27 +02:00
parent 9a5a1523d9
commit 7e9944ce60
4 changed files with 25 additions and 7 deletions

View File

@@ -84,6 +84,7 @@ model::namespace_ get_template_namespace(const clang::TemplateDecl &declaration)
std::string get_tag_name(const clang::TagDecl &declaration)
{
auto base_name = declaration.getNameAsString();
if (base_name.empty()) {
base_name =
fmt::format("(anonymous_{})", std::to_string(declaration.getID()));