panic: NewFuncDecl: fail convert signature mq_notify: error convert baseType: unsupported refer type *ast.ScopingExpr
Open
Nobody has claimed this yet.
bug
to be confirm
- Dominant language
- Go
- Stars
- 33
- Forks
- 11
- Avg merge
- 1h 17m
- Merged PRs (30d)
- 51
Description
int mq_notify( mqd_t, const struct sigevent * );
It looks like clang parsed a wrong AST,
{
"Doc": {
"List": [
{
"Text": "/* Added by Espressif - specified but not implemented functions, return ENOSYS */\n",
"_Type": "Comment"
}
],
"_Type": "CommentGroup"
},
"IsConst": false,
"IsConstructor": false,
"IsDestructor": false,
"IsExplicit": false,
"IsInline": false,
"IsOverride": false,
"IsStatic": false,
"IsVirtual": false,
"Loc": {
"File": "/Users/xxx/esp/esp-idf/components/rt/include/mqueue.h",
"_Type": "Location"
},
"MangledName": "mq_notify",
"Name": {
"Name": "mq_notify",
"_Type": "Ident"
},
"Parent": null,
"Type": {
"Params": {
"List": [
{
"Access": 0,
"Comment": null,
"Doc": null,
"IsStatic": false,
"Names": null,
"Type": {
"Name": "mqd_t",
"_Type": "Ident"
},
"_Type": "Field"
},
{
"Access": 0,
"Comment": null,
"Doc": null,
"IsStatic": false,
"Names": null,
"Type": {
"X": {
"Parent": {
"Name": "mq_notify",
"_Type": "Ident"
},
"X": {
"Name": "sigevent",
"_Type": "Ident"
},
"_Type": "ScopingExpr"
},
"_Type": "PointerType"
},
"_Type": "Field"
}
],
"_Type": "FieldList"
},
"Ret": {
"Flags": 0,
"Kind": 6,
"_Type": "BuiltinType"
},
"_Type": "FuncType"
},
"_Type": "FuncDecl"
},
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Use the mq_notify declaration in components/rt/include/mqueue.h as the reproduction case, then trace the NewFuncDecl conversion where the PointerType contains a ScopingExpr. Confirm the converter handles this clang AST without panicking and that the declaration is converted successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, go
- Domain
- compilers, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100