c2ffi icon indicating copy to clipboard operation
c2ffi copied to clipboard

Function typedefs return as `:function-pointer`

Open 0komo opened this issue 1 year ago • 2 comments

typedef void (*func)(void);

Returns:

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

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

0komo avatar Jun 11 '24 05:06 0komo

Expected result are

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

0komo avatar Jun 11 '24 05:06 0komo

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

rpav avatar Jul 29 '24 02:07 rpav