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.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 3.0.0, Qt Creator 3.0.1, Qt Creator 3.1.0-beta
    • C/C++/Obj-C++ Support
    • None
    • 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

              kosjar Nikolai Kosjar
              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