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

Make it possible to follow the 'auto' keyword

XMLWordPrintable

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

    • ad5336a028917a526f89ea1fae12c8dc4761409d

      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.

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

            kosjar Nikolai Kosjar
            agarny Alan Garny
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes