Added paragaph array to clang comment parser

This commit is contained in:
Bartek Kryza
2022-09-22 19:33:08 +02:00
parent 9bb2a6e8c9
commit 7b20a491b4
5 changed files with 50 additions and 1 deletions

View File

@@ -69,6 +69,11 @@ void clang_visitor::visit(
cmt["text"] =
cmt["text"].get<std::string>() + "\n" + paragraph_text;
if (!cmt.contains("paragraph"))
cmt["paragraph"] = inja::json::array();
cmt["paragraph"].push_back(paragraph_text);
}
else if (block_kind == Comment::TextCommentKind) {
// TODO