r/cpp • • Mar 15 '26

C/++ documentation generator - feedback wanted

Hi r/cpp, I'm building duck, a modern documentation generator for C and C++, inspired by Rust's rustdoc tool. I think it has finally reached a point where it is usable enough to be tested on real projects. See it used on a large C project here.

I’d love for anyone who’s interested to try it out on their codebase and report any bugs, edge cases, or feedback you encounter (as far as I'm aware, this mostly happens in name resolution edge cases). Your input will be very valuable and I will be happy to fix any bug you might encounter :)

Few notes:

- Doxygen comments are not supported, do not expect them to render properly! Comments are written in Markdown

- Concepts and modules are not supported, because libclang does not yet expose them.

- If you're seeing your type aliases be set to int, this is libclang's way of telling you that it couldn't resolve the type. This can typically be fixed by adding -I<your include directory> in your compiler flags in the duck.toml config file

Thank you!

40 Upvotes

17 comments sorted by

View all comments

Show parent comment

3

u/Abbix57 Mar 16 '26

Thanks lot for your feedback! A lot of stuff to look into. I think one way I could support Doxygen comments is translating the `@param`, `@return` to markdown when parsed. I get your point about customization, and I'm thinking maybe that can be done by extending the markdown syntax to support outputting the generated code references when desired