Papierkorb / bindgen

Binding and wrapper generator for C/C++ libraries
GNU General Public License v3.0
179 stars 18 forks source link

Document type for the Clang parser #84

Closed HertzDevil closed 4 years ago

HertzDevil commented 4 years ago

This refactor brings the equivalent of Crystal's Bindgen::Parser::Document to the Clang parser.

Alone it doesn't do anything new, but passing the whole document around allows each registered AST handler to insert multiple parser values (there will be a use case for this).

Papierkorb commented 4 years ago

there will be a use case for this

Which is?

HertzDevil commented 4 years ago

Nested anonymous types: #85

Papierkorb commented 4 years ago

Now I see where you're coming from. As I don't squash PRs could you update your PR with better commit titles? Thanks!

HertzDevil commented 4 years ago

done

Papierkorb commented 4 years ago

Thanks! 👍