r/cpp • u/Abbix57 • 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!
View all comments
Show parent comment
1
u/gosh Mar 15 '26
I think that it would work for terminal based. Most dev environments are able to open a terminal and in some way have some sort of context based on where in the code you are. It can be enough to have same folder
If it is possible to paste files and use them when generating docs it would be good. Or maybe select text into the clipboard and use that to extract docs from.
For more advanced settings it could have some sort of history where it remembers because if I want to get docs from code and forgets to add one or some files and do not want to rewrite everything. Do not know the best solution for this
I know that terminal applications that get too many options how to work with them will have problems to be used. But for first version just to test. Later version might have some UI for terminals to simplify.
I know that it is possible to wrap terminal applications in different editors if you want to have better integration