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
 unnamed namespace scoped structures unrecognized
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

nooewt
New Member

2 Posts

Posted - Aug 19 2010 :  12:49:03 PM  Show Profile  Reply with Quote
IDE: VS2008 Version 9.0.30729.1
VAX: 10.6.1814.0
Language: C++
I have a struct defined within the scope of an unnamed namespace.
Using an instance of the struct within the same file, below the definition, VAX offers no Suggestions/Listboxes for members of the struct.

I commented out the unnamed namespace scoping and the Suggestions were offered.

There appears to be a bug related to unnamed namespace scoped structures.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Aug 20 2010 :  4:49:55 PM  Show Profile  Reply with Quote
Can you please provide a simply example? I tried to create a simple example, but it worked with VA1830:



Go to Top of Page

nooewt
New Member

2 Posts

Posted - Aug 23 2010 :  09:50:07 AM  Show Profile  Reply with Quote
I had used the struct outside of the namespace:
namespace
{
struct S10
{
char c1[1];
};
}
int main(int argc, char* argv[])
{
S10 s10;
s10.c1;
return 0;
};

But, in this simple example, the Suggestions showed up. Regarding the original post, I had toggled commenting/uncommenting the unnamed namespace several time and the behavior was repeated each time. Ambiguity was not the problem as the structs were most definitely uniquely named.

I had Get Content from Default Intellisense set to on. This may be part of the reason, but I'm not sure. The above simple example worked with and without using Intellisense content.

I've just turned off using content from Intellisense in the project I was having trouble with and now VAX Listbox/Suggestion is working.

I'll chalk this up to poor Intellisense behavior.

Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Aug 24 2010 :  08:08:02 AM  Show Profile  Reply with Quote
Thank you for sharing this, I'm glad it works with Visual Assist's parser.
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