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

'Follow Symbol Under Cursor' doesn't work for macro defined struct

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 2.4.0
    • Qt Creator 2.5.0-beta
    • C/C++/Obj-C++ Support
    • None
    • Windows 7
    • 36deb6b060d1b553bbb2aede573581464f57e031

    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
          i.testFloat = 9; // Issue 2
          Valid v;
          v.testFloat = 8;
          return 0;
      }
      

      Follow Symbol doesn't work under "i.testFloat" or "Invalid".
      Because the struct "Invalid" is defined by macro.

      Attachments

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

        Activity

          People

            leamelo Leandro T. C. Melo
            loaden Yuchen Deng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes