Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7903602

Simplify handling of structs/unions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • None
    • 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.

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

              Created:
              Updated:
              Resolved: