Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 little question about 1848
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

serg751
Starting Member

1 Posts

Posted - May 23 2011 :  12:28:38 PM  Show Profile  Reply with Quote
I have one question.

For example:

1.cpp:

namespace // !!!!!!!! unnamed
{
 struct Test
 {
   int x;
 };

 Test x;
}


2.cpp:

namespace // !!!!!!!! unnamed
{
 struct Test
 {
   double x;
 };

 Test x;
}


Structure Test is enclosed by unnamed namespace in different cpp-files.
But when I perform "Find references" on 'Test', Visual Assist finds structure in both files.
Why Visual Assist does it, but it is known, what "Test" in my particular case is different types?

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - May 23 2011 :  11:00:07 PM  Show Profile  Reply with Quote
This is because Visual Assist works with scopes rather than separate files. I mean it pre-parses (pre-caching) all files, learning your namespace and class hierarchy to be able to help when you are coding. Find references using these collected information for the search: First, searching the symbols in your files by name and then filtering by hierarchy. Name: Test. Scope: the unnamed namespace. For both occurrences.

Edited by - accord on May 23 2011 11:15:05 PM
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000