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

        Issue Links

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

          Activity

            People

              kandeler Christian Kandeler
              pawel12 Pawel Faron
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes