Skip to content

Compilation error with action delete #4

Open

Description

@mbertrone

When the YANG data model includes an action called delete, like in firewall service [1], the generated code includes methods called delete(...).
This is causing a compilation error because delete is a c++ reserved keyword.

A possible solution could be a check in code generation tools that adds a suffix to delete method, e.g. deletes or delete_action.

[1]

    action delete {
      input {
        uses "firewall:rule-fields";
      }
    }

Activity

  1. frisso commented on May 21, 2019

    @frisso
    Contributor

    Good catch!
    @mauriciovasquezbernal : can we leave this to you?

  2. mauriciovasquezbernal commented on May 21, 2019

    @mauriciovasquezbernal
    Contributor

    Good catch!
    @mauriciovasquezbernal : can we leave this to you?

    Sure, I assigned myself.

  3. mauriciovasquezbernal commented on Jul 27, 2019

    @mauriciovasquezbernal
    Contributor

    I don't know if at this point I could take care of this, so I am removing my assignment.

  4. removed their assignment
    on Jul 27, 2019
  5. frisso commented on Jul 28, 2019

    @frisso
    Contributor

    This is really sad, unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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