Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-91

Alternative struct/enum definition with "typedef" causes Shiboken into infinite loop / is not detected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 6.0
    • 1.2.x
    • Shiboken
    • None
    • 94c66fe586be8eeae3eb35ad6e153ff8823fd3d6

    Description

      I am using Shiboken to create Python bindings for a third-party library, and it is a really nice tool - great job in creating it!

      However, I have stumbled upon a couple small problems: Shiboken (APIExtractor?) seems to not be able to handle alternative definitions of structs/enums using the "typedef" keyword.

      A) Infinite loop

      If a struct is defined as follows

      typedef struct A {
      ...
      } A;

      shiboken seems to go into an infinite loop, with the last status message being "Detecting inconsistencies in class model...".

      Note that if I remove the "typedef", this problem does not occur.

      B) Non-detected definitions

      If an enum is defined as follows

      typedef enum

      { ... }

      B;

      it is not detected and not added to the enum model.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            brupprec Benjamin Rupprechter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes