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

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

XMLWordPrintable

      #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;
      }
      

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

            kandeler Christian Kandeler
            loaden Yuchen Deng
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes