Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 VA Outline and functions named 'delegate'

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
bcthfq8 Posted - Nov 14 2017 : 11:52:16 AM
In C++, VA Outline method grouping misbehaves for a class that contains a member function named 'delegate'. Such a function also appears in the outline with the wrong color and icon.

For example, in a .h file I have:

struct foo
{
  void method1();
  int delegate();
  void method2();
}


In the .cpp file I have:

void foo::method1() { }
void foo::delegate() { }
void foo::method3() { }

In the VA Outline of the cpp file, instead of seeing:
* foo methods
** method1
** delegate
** method3

I'm getting:
* foo::method1
* foo::delegate
* foo::method3

The color and icon for the method is wrong both in the .cpp file and the .h file.

From a search in the forum I'm guessing this has something to do with the word 'delegate' having a special meaning in C# (e.g. https://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=7903)?


1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Nov 15 2017 : 09:19:27 AM
I am seeing the same effect here. Thank you for the clear description.

case=112362

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