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

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

XMLWordPrintable

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

      #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.

        1. bug.png
          13 kB
          Yuchen Deng
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes