Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-19953

Strongly typed Enum hover values assume signed values for typedefs and aliases.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 4.6.0-beta1
    • C/C++/Obj-C++ Support
    • None
    • Mac OS X 10.11.6

      Qt Creator 4.6.0-rc1 (r1973)

      From revision f60641f3d3

    Description

      The above screenshot is unedited except for merging the tooltips from three different screenshots.

      When using an unsigned typedef for a strongly typed enum, the hover values always appear as signed.

      Theoretically, these enums should behave identically, and the hover tooltip should display 128 under each enum's Value.

      However, when hovering over Bar::Value, it incorrectly displays -128.

      This isn't limited to unsigned char.

      Edit

      This bug also happens for all aliases.

      Attachments

        1. qt creator wat.png
          28 kB
          Devin Hussey

        Issue Links

          Activity

            People

              kosjar Nikolai Kosjar
              easyaspi314 Devin Hussey
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: