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

typedef not resolved inside member function definition

    XMLWordPrintable

Details

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

    Description

      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
      }

      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
              orgads Orgad Shaneh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes