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

c++11 auto type deduction

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • None
    • C/C++/Obj-C++ Support
    • None

      With C+11 / C+14, auto type deduction are everywhere.

      Qt Creator is able to show the type of a variable when the user hovers the mouse cursor on a variable name. Except when it is automatically deduced

      In the following code sample, Qt Creator only shows the type of a, not b nor c :

      int main()
      {
        int a = 42; // OK
        auto b = 42; // No type shown
        decltype(auto) c = 42; // No type shown
        // ...
      }

      Suggestion : make auto type deduction work in QtCreator

      • Show the type when the mouse is cursor is hovering
      • Allow "Follow Symbol Under Cursor"/ Ctrl+Click to work with auto/decltype(auto) as it does with explicit types

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

            kosjar Nikolai Kosjar
            karim.ouahab Karim Ouahab
            Votes:
            15 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes