[cfe/macros]: empty metadata iterable at compile time #55983
Labels
area-front-end
Use area-front-end for front end / CFE / kernel format related issues.
cfe-feature-macros
Implement macros features in the CFE
feature-macros
Implementation of the macros feature
Trying to resolve method metadata at definion class definition phase returns an empty metadata iterable at compile time but doesn't throw an exception, while the analyzer correctly generated the augmentation and correctly passes the full metadata list to the macro.
This example class generates following augmentation code using the analyzer
but retrieving the getter generated by this at runtime results in following output:
I took a while to even notice this behaviour since the analyzer output looks correct and the compiler doesn't throw an (Unimplemented-)Exception. Only noticed it once my stuff which actually needed the metadata entries broke.
The code of the macro is available at https://github.com/helightdev/cfe_metadata_reconstruction
The bug has been tested on a build of the current main branch
The text was updated successfully, but these errors were encountered: