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

Auto-complete of switch does not work if used on templated methods return

    XMLWordPrintable

    Details

    • Commits:
      023a77ea8080d3e19f530c7ea99a90d9d00667b7 (qt-creator/qt-creator/4.14)

      Description

      Trying to generate the individual cases for the switch in the following snippet does not work. It does however work when storing the returned value in a variable of type Tags or apparently when using a method which returns the type directly.

      #include <QTaggedPointer>
      enum Tags {A, B};
       
      int main() {
        QTaggedPointer<void *, Tags> taggy;
         switch(taggy.tag()) { // try to refactor this switch to complete the case statements
        }
      }
      

       

        Attachments

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

          Activity

            People

            Assignee:
            kandeler Christian Kandeler
            Reporter:
            fabiankosmale Fabian Kosmale
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes