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

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated 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

      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.

        1. qt creator wat.png
          28 kB
          Devin Hussey
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes