Skip to content

Missing varialbe and parameter types from C functions inside M3 Model #80

Description

@matteasu

Setup:

  • Rascal 0.35.0-RC1
  • Clair 0.12.0
  • Ubuntu 22.10 aarch64
  • OpenJDK 17.0.7

Given a simple C program, such as:

#include <stdio.h>

int main(int argc, char argv[]){
    int a=0;
    printf("Hello world!");
    return 0;
}

Similar to issue #69, but this time, it regards the type of variables that may be defined inside a program

"declaredType": [
        [
            "c+variable:///main(int,char.*)/a",
            "any"
        ],
]
"declaredType": [
        [
            "cpp+variable:///main(int,char.*)/a",
            {
                "modifiers": [],
                "baseType": "int"
            }
        ],
]

Activity

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