Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 little question about 1848

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
serg751 Posted - May 23 2011 : 12:28:38 PM
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?
1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - May 23 2011 : 11:00:07 PM
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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000