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

"Follow symbol" does not follow a static class member to its definition

    XMLWordPrintable

Details

    Description

      blubb.h:

      #include <QByteArray>
      
      class Blubb {
          void blubbFunc();
          static const QByteArray BlubbVar; 
      };
      

      blubb.cpp:

      void Blubb::blubbFunc() {}
      const QByteArray Blubb::BlubbVar = "blubb!";
      

      Pressing F2, I can switch between the declaration and the definition of blubbFunc() in either direction. For BlubbVar, it works only from the definition to the declaration, but not vice versa. That's a pity if you are interested in the value of such a variable.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            kandeler Christian Kandeler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes