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

Find usages does not find usages in designated initializers

XMLWordPrintable

    • All

      typedef struct {
          int bar;
      } Foo;
      
      int main()
      {
          Foo foo = { .bar = 42 };
          return foo.bar;
      }
      

      The local highlighting finds all three occurrences of 'bar', if you click on one of them.

      However, Find Usages only finds the declaration and the read access in the return line, and it finds nothing if executed while the cursor is on .bar.

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

            kandeler Christian Kandeler
            aha_1980 André Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes