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

Autocompletion replace dot '.' to arrow '->' for a plain object in templates

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • Qt Creator 4.7.0
    • Qt Creator 4.0.0
    • C/C++/Obj-C++ Support
    • None
    • Kubuntu 16.04x64
      QtCreator 4.0.0 with clang-code model
      gcc 5.3.1

    Description

      In the following code sometimes autocompletion replaces 'rhs.' to 'rhs->'

      test.cpp
      class A{
      public:
          A(const A &rhs)
          {
              m_x=rhs.m_x; //Autocompletion works fine
          }
      private:
          int m_x;
      };
      
      
      template <typename T>
      class AA{
      public:
          AA(const AA<T>& rhs)
          {
              m_x=rhs-> //Sometimes (not always) 'rhs.' replaces to 'rhs->'
          }
      private:
          int m_x;
      };
      

      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
              spise Andrew Sposobin
              Votes:
              11 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes