Skip to content

Emit a warning for enumeration members that start with a number

Emmanuele Bassi requested to merge ebassi/issue-418-no-change into main

Members of enumeration types should not have a name that starts with a number, as that will inevitably break languages that do not allow identifiers to start with a numerical value.

We cannot skip members, as that would break the introspection ABI of existing libraries; and we cannot rename members, as that would break existing language bindings. We can emit a warning, though, and allow libraries to fix their enumerations.

Fixes: #418 (closed)

Edited by Emmanuele Bassi

Merge request reports