Added handling of nontype template parameters

This commit is contained in:
Bartek Kryza
2021-03-06 20:41:29 +01:00
parent e267d295f6
commit 25254fc81d
6 changed files with 66 additions and 14 deletions

View File

@@ -223,3 +223,22 @@ private:
};
}
}
template <> struct fmt::formatter<clanguml::cx::cursor> {
template <typename ParseContext> constexpr auto parse(ParseContext &ctx)
{
return ctx.begin();
}
template <typename FormatContext>
auto format(const clanguml::cx::cursor &c, FormatContext &ctx)
{
return fmt::format_to(ctx.out(),
"(cx::cursor spelling={}, display_name={}, kind={}, "
"is_expression={}, template_argument_count={})",
c.spelling(), c.display_name(), c.kind_spelling(),
c.is_expression(), c.template_argument_count()
);
}
};