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
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Add bool flag typedef_enum_with_defmod (default false)
This flag's behaviour is intended to be the default behaviour. Its release
starts a transition period for users to begin enabling this flag.
This flag causes typedef enumeration/identity names to be prefixed with
its defining module name, per docs/design.md, instead of the current
behaviour of using the residing module.
Using this flag also fixes a related bug. Namely, if a collision of a
typedef name occurred, behaviour with flag set to false silently ignores
this fact, and uses one of the enums in place of all conflicting enums.
Turning on this flag would now cause a code generation error to be
raised when this conflict occurs.
where an enumeration is defined within a typedef that contains a union,
the enumerated language type that is generated is named according to the name
of the typedef with _Enum appended to the name. This improves upon the
present behaviour (which duplicates the definition for every place of usage) by
giving a name to such enumerations, thus de-duping them.
Enabling this flag also partially fixes #245, including the sid-id case in the
real OpenConfig schema.