KDAB / cxx-qt

Safe interop between Rust and Qt
https://kdab.github.io/cxx-qt/book/
993 stars 66 forks source link

Extract former CXXMappings into TypeNames struct #838

Closed LeonMatthesKDAB closed 6 months ago

LeonMatthesKDAB commented 6 months ago

This is the first stage of the Naming phase (#835) refactor. All associations between types and their fully qualified names are now stored in one central database, the TypeNames struct.

The final goal for this struct is to include all fully qualified names for each nameable type in the bridge. Therefore the generator can use this to lookup any references from e.g. arguments.

This is not quite done yet, as this isn't yet used everywhere, but it's a good first step

LeonMatthesKDAB commented 6 months ago

Information for the reviewer: The important part here is in the parser/mod.rs, parser/naming.rs and parser/cxxqtdata.rs. All of the other files basically just include renaming from CXXMappings -> TypeNames (basically every change in the generator folder)