Skip to content

Set the signess of a variable in declaration if it is always used with a sign. #26

Open

Description

@mchalupa

If a variable is cast to e.g. int everywhere in the program, we may declare it int instead of unsigned int (and the casts visitor then removes useless casts). The question is whether we can easily track the casts of the variable.

Activity

  1. tomsik68 commented on Sep 8, 2019

    @tomsik68

    Currently, it's not possible to easily distinguish whether a Value is a variable or a constant. It'd be wise to work on that before fixing this.

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions