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
 File methods list shows incorrect function name
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

GKarRacer
Ketchup Master

USA
58 Posts

Posted - Oct 07 2010 :  6:41:37 PM  Show Profile  Reply with Quote
The "List of Methods in file" (Alt-M) shows an incorrect name for operator<< functions. It drops off the second '<' and lists it as operator< instead. It's the same whether it's a member function or free function. This is as of build 1833.

It is minor, but it does make it a bit harder as it conflicts with actual operator< functions. Selecting it from the list still goes to the correct function at least.

The other direction (operator>>) works correctly.

GKarRacer
Ketchup Master

USA
58 Posts

Posted - Oct 07 2010 :  6:46:13 PM  Show Profile  Reply with Quote
Just to add: it also shows the same thing in VA View and the "Definition" drop-down. Va Outline, however, shows the correct name.
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Oct 08 2010 :  03:50:18 AM  Show Profile  Reply with Quote
I beleive that this is case=7383

Can you please post an example declaration where << is truncated in the alt+m list?

Edited by - accord on Oct 08 2010 03:52:12 AM
Go to Top of Page

GKarRacer
Ketchup Master

USA
58 Posts

Posted - Oct 08 2010 :  1:27:52 PM  Show Profile  Reply with Quote
It is very easy to see. The following code will do it for example:

struct astruct
{
int a;

void operator<<(int b)
{}
};

void operator<<( CArchive& ar, const astruct& s )
{
}


Both uses of operator<< show as operator< in the list.
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Oct 08 2010 :  2:59:37 PM  Show Profile  Reply with Quote
Strange. Which Visual Studio are you using? It shouldn't matter, but I don't see the problem with VS2010 and VS2008 SP1. I took a screenshot of my VA outline, using VS2008:



Go to Top of Page

GKarRacer
Ketchup Master

USA
58 Posts

Posted - Oct 08 2010 :  3:18:53 PM  Show Profile  Reply with Quote
VA Outline shows it correctly. But the others don't (VA View, Definition drop down, and Method list). I'm using VS2010. I haven't checked 2005 or 2008 yet.

This is from the List of methods in current file drop down:

Go to Top of Page

GKarRacer
Ketchup Master

USA
58 Posts

Posted - Oct 08 2010 :  3:27:32 PM  Show Profile  Reply with Quote
I verified that VS2005 and VS2008 also have the same problem.
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Oct 11 2010 :  03:45:27 AM  Show Profile  Reply with Quote
Ups! Yes, I was testing the wrong thing, sorry

Now I am seeing the same effect here with your test case, in alt+m list. I have added a comment to the case, thank you.

Edited by - accord on Oct 11 2010 03:50:20 AM
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Nov 12 2010 :  3:35:08 PM  Show Profile  Reply with Quote
case=7383 is fixed in build 1836

Whole Tomato Software, Inc.
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