Skip to content

v0.8.3

Compare
Choose a tag to compare
@wenovus wenovus released this 24 Jul 23:42
· 327 commits to master since this release
3599517
  • 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.
  • Add DefiningType Helper to util package.