Add bit field support #3
Labels
Area-OutputGeneration
Issues concerning the process of generating output from Biohazrd
Area-Translation
Issues concerning the translation from libclang into Biohazrd
Concept-CppFeatures
Issues concerning unsupported C++ features
Milestone
The libclang Pathogen extensions provide information about bit fields, but we don't really use it beyond marking the fields are unusable.
I think the best approach here is to make an additional
TranslatedBitField
type to represent them rather than trying to wedge them intoTranslatedNormalField
. That way the relative edge-case bit field stuff can live separate from the extremely common case of normal fields.C# does not support bit fields, so we'd need to implement them manually using properties. This should be fine since the only thing this really does is prevent taking a reference to the bit field, which isn't something you can do regardless.
The text was updated successfully, but these errors were encountered: