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

'Find Usages' doesn't work for macro defined struct

    XMLWordPrintable

Details

    Description

      #define MEMBER_IMPL(selfClass) struct selfClass
      
      MEMBER_IMPL(Invalid)
      {
          float testFloat;
          int testInt;
      };
      
      struct Valid
      {
          float testFloat;
          int testInt;
      };
      
      int main()
      {
          Invalid i; // Issue 1: can't color
          i.testFloat = 9; // Issue 2: Run "Find Usages" on testFloat. It doesn't find anything.
          Valid v;
          v.testFloat = 8;
          return 0;
      }
      

      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
              loaden Yuchen Deng
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes