Fixed class template parameter generation in class visitor

This commit is contained in:
Bartek Kryza
2023-03-16 21:44:51 +01:00
parent 6d4533018b
commit e0447f28c1
9 changed files with 54 additions and 42 deletions

View File

@@ -46,20 +46,20 @@ void to_json(nlohmann::json &j, const template_parameter &c)
{
j["kind"] = to_string(c.kind());
if(c.kind() == template_parameter_kind_t::template_type) {
if (c.kind() == template_parameter_kind_t::template_type) {
j["name"] = c.name().value();
}
// j["type"] = c.type();
// j["name"] = c.name();
// if (!c.default_value().empty())
// j["default_value"] = c.default_value();
// j["is_template_parameter"] = c.is_template_parameter();
// j["is_template_template_parameter"] = c.is_template_template_parameter();
// if (const auto &constraint = c.concept_constraint(); constraint)
// j["concept_constraint"] = constraint.value();
// j["is_variadic"] = c.is_variadic();
// j["type"] = c.type();
// j["name"] = c.name();
// if (!c.default_value().empty())
// j["default_value"] = c.default_value();
// j["is_template_parameter"] = c.is_template_parameter();
// j["is_template_template_parameter"] =
// c.is_template_template_parameter(); if (const auto &constraint =
// c.concept_constraint(); constraint)
// j["concept_constraint"] = constraint.value();
// j["is_variadic"] = c.is_variadic();
}
void to_json(nlohmann::json &j, const relationship &c)