Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Broken member function grouping in VA Outline

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
Pezo Posted - Nov 16 2018 : 08:49:46 AM
Multiple member function definitions for the same class get grouped nicely in VA Outline when there's nothing unrelated in between. This is broken, however, when one of those functions uses a function-try block. Every catch clause gets an entry at the same level as the class containing the function, see the image below.

It would be great if this could be fixed so the catch clauses either don't get outline entries at all, or they get grouped as members of the function.

3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Nov 19 2018 : 07:21:59 AM
At least this is a rare problem, that helps. In case it helps, the syntax for the region is:

#pragma region WIthTryFunc2TryCatch
void WithTry::func2() try
{
} catch(int) {
} catch (...) {
}
#pragma endregion

this doesn't stop VA outline getting confused with the catch block, but it does hide the confusion inside the pragma region, which you can collapse or expand inside VA Outline.
Pezo Posted - Nov 19 2018 : 01:11:23 AM
Thanks for the suggestion. I don't use function-try blocks that often, it's just one or two places.
feline Posted - Nov 16 2018 : 11:24:01 AM
I am seeing the same effect here. Thank you for the clear description.

case=1867

Unfortunately I don't currently have an estimate for when we will try and fix this. Do you only have a few functions like this? Or do you do this a lot? If it is only a few functions I am wondering if grouping them together in the file, and then perhaps wrapping them in a #pragma region #pragma endregion block, so these odd lines would be grouped into the region in VA Outline? Not a solution, but possibly a helpful work around.


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