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

typedef not resolved inside member function definition

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 3.4.0-beta1
    • C/C++/Obj-C++ Support
    • None

      Happens a lot in Qt Creator classes that have typedef QSharedPointer<Class> Ptr;.

      MWE:

      struct User { void use(); };
      
      template<class T>
      struct Pointer { T *operator->(); };
      
      struct Foo
      {
          typedef Pointer<Foo> Ptr;
          int bar;
      };
      
      void User::use()
      {
          typedef Foo MyFoo;
          MyFoo::Ptr myfoo;
          myfoo->bar; // bar not highlighted
      }

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

            kosjar Nikolai Kosjar
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes