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
Currently, enum values are always SHOUTY_CASE. The Google C++ style guide prefers kCamelCase for enum names, so we would like to migrate our Emboss enum names to this style eventually. A possible implementation is adding a configuration option for enum name style at the top of .emb files.
The text was updated successfully, but these errors were encountered:
As of #89 this should be implemented. To use kCamelCase enum names for all enums in a module, you should be able to add:
[(cpp) $default enum_case: "kCamelCase"]
To the top of the module (alongside other attributes like namespace and default endianness, if applicable). If you need to transition between the two, you should be able to use:
Then update all references from SHOUTY_CASE to kCamelCase, and remove the "SHOUTY_CASE" entry from the enum cases.
Note: You can also apply this only to specific enum values, or all enum values in an enum, or all enums within a struct or bits, etc. by putting the annotation at the appropriate level.
Currently, enum values are always SHOUTY_CASE. The Google C++ style guide prefers kCamelCase for enum names, so we would like to migrate our Emboss enum names to this style eventually. A possible implementation is adding a configuration option for enum name style at the top of
.emb
files.The text was updated successfully, but these errors were encountered: