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

Find Usages of typedef-ed struct

    XMLWordPrintable

Details

    Description

      I've recently noticed two problems with typedef-ed struct, such like this one:

      typedef-ed struct
      typedef struct
      {
          int             length;
      } Square;
      

      1. The "Open Type Hierarchy" doesn't work.
      2. When we have two or more typedef-ed struct that have members with the same name, the "Find Usages" will not search contextually. Meaning it will find all occurrences in all struct. For example with those structs if we search usages of length it will give results of both structs.

      typedef-ed struct
      typedef struct
      {
          int             length;
      } Square;
      
      typedef struct
      {
          int             length;
      } Rectangle; 
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            pawel12 Pawel Faron
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: