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

Find Usages doesn't find usages in unopened files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 2.8.0-beta
    • C/C++/Obj-C++ Support
    • None

      foo.h:
      
      struct Bar;
      
      struct Foo { Bar *bar; }
      
      bar.h:
      struct Bar
      {
        void baz();
      };
      
      bar.cpp:
      #include "bar.h"
      
      void Bar::baz() {}
      
      main.cpp:
      #include "foo.h"
      #include "bar.h"
      
      int main()
      {
        Foo foo;
        foo.bar->baz();
        return 0;
      }

      Find Usages on Bar::baz() doesn't find the usage in main until I open main.cpp.

      Note: The problem doesn't reproduce with this minimal example, but my project is quite similar to this and no usages are found.

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

            erikv Erik Verbruggen
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes