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

"Auto" variable doesn't show correct tooltip

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 4.6.0-beta1
    • Qt Creator 3.0.0, Qt Creator 3.4.0, Qt Creator 3.5.1, Qt Creator 3.6.0
    • C/C++/Obj-C++ Support
    • None

    Description

      "auto" variable doesn't show correct tooltip in text editor.

      Example code:

      #include <QString>
      int main()
      {
          QString str1;
          auto str2 = str1;
          str2.append("a");
          return 1;
      }
      

      If you move your mouse on str1 - you will see correct tooltip that this variable is QString, but if you move mouse on str2 then you won't see this and only see tooltip message with the name of variable("str2"), like it some template variable.

      Attachments

        Issue Links

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

          Activity

            People

              kosjar Nikolai Kosjar
              shtirliz72 Konstantin
              Votes:
              31 Vote for this issue
              Watchers:
              22 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes