Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep original label names from C code #415

Merged
merged 2 commits into from May 23, 2022

Commits on May 21, 2022

  1. remove Copy impl from cfg::Label and cfg::ImplicitReturnType

    This allows to put the label name into the label structure, and doesn't significantly affect the rest of the code.
    afetisov committed May 21, 2022
    Configuration menu
    Copy the full SHA
    ebd98fa View commit details
    Browse the repository at this point in the history
  2. add optional label name for c_ast::cfg::Label::FromC variant

    This allows to keep the names of explicit labels defined in the C source. Note that not all labels
    coming from C have a user-defined name, e.g. case statements within a switch statements are anonymous.
    afetisov committed May 21, 2022
    Configuration menu
    Copy the full SHA
    00171f5 View commit details
    Browse the repository at this point in the history