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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Not Evaluated 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

      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;
      };
      

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

            kosjar Nikolai Kosjar
            spise Andrew Sposobin
            Votes:
            11 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes