Skip to content

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

@matteasu

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"
            }
        ],
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions