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

Objects of typedef’ed types cannot be autocompleted

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • Qt Creator 2.6.0
    • C/C++/Obj-C++ Support
    • None

    Description

      It seems that objects of typedef’ed types cannot be autocompleted. For example:

      #include <iostream>

      struct MyClass
      {
      void TestFunction(){}
      };

      int main (int , char *[])
      {
      MyClass myClass;
      myClass.TestFunction();

      MyClass* myClass2 = new MyClass;
      myClass2->TestFunction();

      typedef MyClass MyClassType;
      MyClassType myClass3;
      // myClass3. // no autocomplete list produced

      return 0;
      }

      Here “myClass.” produces the auto complete list, “myClass2->” produces the auto complete list, but “myClass3.” does NOT produce the autocomplete list. It seems like this is a very reasonable and common thing to want to do.

      Attachments

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

        Activity

          People

            erikv Erik Verbruggen
            daviddoria David Doria
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes