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

Qt Creator does not understand unique_ptr for auto completion, syntax highlighting, and follow symbol under cursor.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: Qt Creator 3.0.0, Qt Creator 3.0.1, Qt Creator 3.1.0-beta
    • Fix Version/s: None
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None
    • Environment:
      All.

      Description

      When using std::unique_ptr auto completion, syntax highlighting, and follow symbol under cursor do not work for the template type.

      std::unique_ptr<MyClass> pMyClass( new MyClass() );

      pMyClass.get(); // unique_ptr fields/methods work
      pMyClass->SomeMethod() // does not work
      pMyClass->mMyField; // does not work

      The code will compile fine however the IDE does not understand what is inside the unique_ptr.

      Strangely, shared_ptr works fine.

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                kosjar Nikolai Kosjar
                Reporter:
                doublelee Chris Leisure
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes