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

Function typedefs return as :function-pointer #122

Open
mbekkomo opened this issue Jun 11, 2024 · 2 comments
Open

Function typedefs return as :function-pointer #122

mbekkomo opened this issue Jun 11, 2024 · 2 comments

Comments

@mbekkomo
Copy link

mbekkomo commented Jun 11, 2024

typedef void (*func)(void);

Returns:

{
  "tag": "typedef",
  "name": "func",
  "type": {
    "tag": ":function-pointer"
  },
  // ...
}

It doesn't have parameters and return-type properties.

@mbekkomo
Copy link
Author

Expected result are

{
  "tag": "typedef",
  "name": "func",
  "type": {
    "tag": ":function-pointer",
    "parameters": [
      {
        "tag": ":void"
      }
    ],
    "return-type": {
      "tag": ":void"
    }
  },
  // ...
}

@rpav
Copy link
Owner

rpav commented Jul 29, 2024

Sorry I missed this; any idea if this is a regression?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants