jdeans289 / icg2

Interface Code Generator 2: Electric Boogaloo
Other
0 stars 2 forks source link

Bitfield Member Variables #2

Open jdeans289 opened 1 year ago

jdeans289 commented 1 year ago

Bitfields break everything. Make them not do that.

Bitfields are currently implemented in DataTypes, but they do not fit very well into the design we've set up. They are currently ignored in checkpoints. They probably need to be added to DataTypeVisitor as well, although they are going to break some rules there since you can't have a pointer to a bitfield.

jdeans289 commented 12 months ago

I think Bitfields should be represented as a DataType, and should have a base and then templated class like PrimitiveType->SpecifiedPrimitiveType. There may need to be some special case code. However, I think that most of it can be handled by the Visitors.