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

Auto completion not working for pointer initialized at declaration

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 3.2.0
    • C/C++/Obj-C++ Support
    • None
    • Linux

    Description

      If a pointer is declared and initialized on the same line, the auto-completion on the pointer (ctrl+space) is not triggered. Need to input at least the first letter to have the auto-completion working

              std::string *a = new std::string();
              a->append();    // No auto-completion. Need to type at least the first letter of the method to have auto-completion
              *a.append();    // Auto-completion ok
                      
              std::string *b;
              b = new std::string();
              b->append(); // Auto-completion ok
      

      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
              jguigui Jean Paul
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes