Scenario:
We have two classes:
ClassA.h
ClassA.cpp
ClassB.h
ClassB.cpp
Say ClassA includes ClassB:
// ClassA.h
#include <ClassB.h>
class ClassA
{
ClassB otherClass;
};
Also, ClassA calls some method on ClassB in ClassA.cpp.
Do a Find References on the method of ClassB in ClassA.cpp.
All four files will show up.
Now, move ClassB.h and ClassB.cpp to another location in the solution explorer (show all files mode is enabled)
Do a Find References on ClassB's method in ClassA.cpp again.
This time, VA-X will miss ClassB.h and ClassB.cpp.
Interestingly, without clearing the Find References, just open ClassB.h. Then, click 'Refresh' on Find References.
Now ClassB.h and ClassB.cpp will appear.
Then, close ClassB.h and click 'Refresh on Find References again. Now, ClassB.h and ClassB.cpp do not appear.
Visual Studio 2008 Standard
Visual Assist X Build 1649