Skip to content

Style: Convert *.gen.inc to *.hpp for ninja#1927

Open
Repiteo wants to merge 1 commit intogodotengine:masterfrom
Repiteo:gen-inc-to-hpp
Open

Style: Convert *.gen.inc to *.hpp for ninja#1927
Repiteo wants to merge 1 commit intogodotengine:masterfrom
Repiteo:gen-inc-to-hpp

Conversation

@Repiteo
Copy link
Contributor

@Repiteo Repiteo commented Feb 12, 2026

While less pertinent on godot-cpp, the same issue could theoretically occur, so this moves away from the .inc syntax for generated headers. However, the context of generating files in godot-cpp is much different than godot, so the extension is .hpp instead of .gen.h, as the .gen paradigm isn't needed when we have a dedicated folder for generated files

@Repiteo Repiteo requested a review from a team as a code owner February 12, 2026 19:46
@Repiteo Repiteo added bug This has been identified as a bug topic:buildsystem Related to the buildsystem or CI setup labels Feb 12, 2026
Copy link
Member

@Ivorforce Ivorforce left a comment

Choose a reason for hiding this comment

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

Works for me.

For godot-cpp we're trying to have a bit of a higher source code compat baseline than in the main repo, but I'm not sure how common it is to include gdvirtual manually.
The best workaround I can think of is still generating the .gen.inc, but making it an empty file except for a gdvirtual.hpp include. Not sure that's necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug This has been identified as a bug topic:buildsystem Related to the buildsystem or CI setup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants