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 17 '26

I actually started this project because I was trying to use Breathe and Exhale, which allow sphinx and Doxygen to work together, and was getting frustrated with the slow build times and overall hackiness of the process. So this actually acts more like a sphinx replacement instead of working alongside it; however I suppose the generated HTML pages wouldn't be too hard to embed.