Skip to content

Unexpected cursor kind CXCursor_VisibilityAttr #1822

@dschrempf

Description

@dschrempf

While playing around with delayed parse messages, I managed to hit a BUG trace:

[Bug    ] [HsBindgen] [select-parse] 'struct hidden' at "./test.h 1:23"
  Could not select declaration:
    Unexpected cursor kind CXCursor_VisibilityAttr
    Please report this as a bug at https://github.com/well-typed/hs-bindgen/issues/

Relevant C code:

struct __attribute__((visibility("hidden"))) Dependency {
  int x;
};

struct Selected {
  struct Dependency dep;
};

Not sure if this is an issue, or if we should simply close this ticket, but I didn't want to let it slide.

Probably related #876.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageRequires triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions