Skip to content

Improve safety with enum handling #149

@adsharma

Description

@adsharma

We have enum class LogicalTypeID. There are a large number of switch statements in the code base which have the following anti-pattern:

  • only a subset of types are handled without a default
  • only a subset of types are handled with a default

One way to fix this is to remove the default clauses and compile with -Wenum-switch

Some of these were uncovered in #148

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions