Open ralfbiedert opened 5 years ago
We have a:
[export.rename] "Result" = "g2om_result"
which produces:
typedef enum { Ok = 0, } g2om_result;
If I now also specify
[enum] rename_variants = "QualifiedScreamingSnakeCase"
My enums look like this
typedef enum { RESULT_OK = 0, } g2om_result;
Instead, I would expect QualifiedScreamingSnakeCase to honor my renames, so that instead this enum is produced:
QualifiedScreamingSnakeCase
typedef enum { G2OM_RESULT_OK = 0, } g2om_result;
cbindgen version: 0.9
0.9
Hmm, maybe only for C? For C++ enum variants are not exposed in the top level scope.
Anyhow this seems a reasonable tweak, probably behind its own flag.
Current Behavior
We have a:
which produces:
If I now also specify
My enums look like this
Expected Behavior
Instead, I would expect
QualifiedScreamingSnakeCase
to honor my renames, so that instead this enum is produced:Tested on
cbindgen version:
0.9