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

Make it possible to follow the 'auto' keyword

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • Not Evaluated
    • None
    • Qt Creator 4.1.0
    • C/C++/Obj-C++ Support
    • None
    • Windows, Linux and macOS

    • ad5336a028917a526f89ea1fae12c8dc4761409d

    Description

      Consider:

      QString myString = QString();
      

      If your cursor is over the first QString then you will be told about the QString type and if you press F2, you will jump to its definition (all as expected).

      Now, say that, instead, we have:

      auto myString = QString();
      

      Well, it would be very useful to have the same behaviour for auto as above for the first QString.

      For more complicated types, e.g.

      auto myMapping = QMap<QString, MyClass *>();
      

      it would be very useful if the tooltip was to have some clickable text that would mention the different types, i.e. QMap, QString and MyClass.

      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
              agarny Alan Garny
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes