Skip to content

panic: NewFuncDecl: fail convert signature mq_notify: error convert baseType: unsupported refer type *ast.ScopingExpr #504

Description

@MeteorsLiu
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"
      },

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions