Refactored comment parsing to clang comments
This commit is contained in:
@@ -44,8 +44,9 @@ inja::json element::context() const
|
||||
ctx["alias"] = alias();
|
||||
ctx["full_name"] = full_name(false);
|
||||
ctx["namespace"] = get_namespace().to_string();
|
||||
if (comment().has_value())
|
||||
if (comment().has_value()) {
|
||||
ctx["comment"] = comment().value();
|
||||
}
|
||||
|
||||
return ctx;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user