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

Add macro to skip including "MyClass.g.h" etc #100

Open
roxk opened this issue Mar 28, 2024 · 0 comments
Open

Add macro to skip including "MyClass.g.h" etc #100

roxk opened this issue Mar 28, 2024 · 0 comments

Comments

@roxk
Copy link
Owner

roxk commented Mar 28, 2024

Idea: The bulk of idl generation is actually clang parsing all header files. If we can skip parsing them, idl generation would be instant.

Pass attempt includes removing .g.h line manually and inserting a bunch of dummy struct ClassT {} classes. I forgot why I didn't explore further but there was some roadblock that necessitates the current bootstrap approach.

Maybe with the help of conditional header inclusion, conditional class content based on macro, the previous dummy ClassT insertion approach would work.

@roxk roxk changed the title Add macro to skip including "App.g.h" etc Add macro to skip including "MyClass.g.h" etc Mar 28, 2024
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

No branches or pull requests

1 participant