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

False detection of global type as anonymous struct member

    XMLWordPrintable

Details

    • 5416557a0b9247e911180a7cce4a5ed3b0c0f351

    Description

      Find Usages and highlighting when the cursor is on Foo are wrong.

      Broken by 376f77952e9c579043a26fcd6be33baed9fd1610.

      If Bar is not anonymous, it works as expected.

      struct Foo {}; // Find Usages is correct
      
      typedef struct {
          int Foo; // Find Usages finds all 3
      } Bar;
      
      void func(void)
      {
          Bar bar;
          bar.Foo; // Find Usages finds all 3
      }

      Attachments

        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:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes