You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I have a header file I'd rather not touch, and I want to convert some #define directives that are integers into enums, such that --constified-enum-module, --bitfield-enum etc would work as expected
This is definitely possible to implement but at the same time I think it could be quite fragile.
A reasonable API for this would be to provide a list of prefixes that, when matched, turn every constant with that prefix into a variant of an enumeration. However, I see cases where such prefix could be used for something unrelated and end up being part of the enum by accident.
Hi! I have a header file I'd rather not touch, and I want to convert some
#define
directives that are integers intoenums
, such that--constified-enum-module
,--bitfield-enum
etc would work as expectedGiven above header, generate the equivalent code as for when parsing
This should also keep comments intact.
Is this possible to implement?
The text was updated successfully, but these errors were encountered: