Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract former CXXMappings into TypeNames struct #838

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

LeonMatthesKDAB
Copy link
Collaborator

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 LeonMatthesKDAB force-pushed the 835-naming-phase branch 2 times, most recently from bda5dbf to 82a7341 Compare February 7, 2024 12:54
@LeonMatthesKDAB
Copy link
Collaborator Author

LeonMatthesKDAB commented Feb 7, 2024

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)

Copy link
Collaborator

@ahayzen-kdab ahayzen-kdab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall I think

This is the first stage of the Naming phase (KDAB#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 LeonMatthesKDAB enabled auto-merge (rebase) February 9, 2024 09:37
@LeonMatthesKDAB LeonMatthesKDAB merged commit 4132a2b into KDAB:main Feb 9, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants