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

Find all usages of a class

    XMLWordPrintable

Details

    Description

      Let's suppose we have the following code:

      class A
      {
      public:
          void method1() {}
          void method2() {}
          void method3() {}
      };
      
      int main(int argc, char *argv[])
      {
          A a1;
          A a2;
          A a3;
          a1.method1();
          a2.method2();
          a3.method3();
      
          return 0;
      }
      

      I would like to find all usages of my class A. Now I have to perform 4 different searches (find references to symbol under cursor): for class A, its method1, its method2, etc.

      What I would like is to have an additional menu item (additional to the already existing "find references to symbol under cursor"), which will include all these 4 (in our example) searches in one monolithic search.

      If a class contains a lot of methods (e.g. 100), it can be a real pain to find all the places in code where the class is used without such a feature.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            alervd Alexander Dyagilev
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes