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

Find Usages doesn't find usages in unopened files

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes