Simplify handling of structs/unions

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • None
    • Affects Version/s: None
    • Component/s: tools
    • None

      The current jextract implementation creates layouts for structs/union during parsing. This means that the logic that visits clang cursors needs to, at the same time, create the struct/union jextract declaration and figure out the struct/union layout. This complex logic is defined in RecordLayoutComputer/StructLayoutComputer/UnionLayoutComputer.

      It would be better if, during parsing, we only created a jextract declaration, and only computed layouts as a post-parsing step.

            Assignee:
            Maurizio Cimadamore
            Reporter:
            Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: