[bindings] Handle type X = Y aliasing in type resolution
authorMatt Corallo <git@bluematt.me>
Fri, 2 Oct 2020 01:28:57 +0000 (21:28 -0400)
committerMatt Corallo <git@bluematt.me>
Wed, 21 Oct 2020 18:50:22 +0000 (14:50 -0400)
commit4d0cf680ab706fb737d1195d620a91057d449390
treeef36508d3b1a09ab812d7a48d833205882810517
parent00fb152758261ff6274b732bccaa211ed8321d06
[bindings] Handle type X = Y aliasing in type resolution

For non-generic type aliases which are meant as convinient aliases
for more complex types, we need to store the aliased type (with all
paths made absolute) and use that in type resolution.

The most code by far is just making all the paths in a type absolute
but its not too bad either.
c-bindings-gen/src/main.rs
c-bindings-gen/src/types.rs