Papierkorb / bindgen

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

Support type substitution of template types #103

Closed HertzDevil closed 4 years ago

HertzDevil commented 4 years ago

Extends Bindgen's type parser to handle C++ templates, and adds methods that replace names in a given type with other types. This PR lays the groundwork for at least 2 scenarios:

The parser and the substitution both fully handle arbitrarily nested templates; the returned Parser::Types respect the template structure at all levels, and should match what would be produced by the Clang parser.

Papierkorb commented 4 years ago

Thanks 👍