I made a quick a (very) dirty piece of code that might be useful to others. It is in python and it uses clang. It seems to handle big projects like OpenCascade (more than 8000 header files) or OpenSceneGraph (215 header files).
It creates lots of files but it doesn't mean it works. They might be a good starting point. I made it because I had some issues to make it work `nimterop` with `c2nim` (probably my bad). You can find it [here](https://github.com/mantielero/cpp2nim). I hope it helps.