clang-uml icon indicating copy to clipboard operation
clang-uml copied to clipboard

Extend inja template context with specific blocks of parsed comments

Open bkryza opened this issue 2 years ago • 0 comments

Currently inja templates can only use the raw comment string of an entity such as class or method. Since libclang supports comment introspection and parsing:

https://clang.llvm.org/doxygen/group__CINDEX__COMMENT.html

it should be possible to provide access to individual comment blocks through inja for instance:

{{ element.comment.brief }}

bkryza avatar Apr 06 '22 10:04 bkryza