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
 Broken member function grouping in VA Outline
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Pezo
Junior Member

Austria
10 Posts

Posted - Nov 16 2018 :  08:49:46 AM  Show Profile  Reply with Quote
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.

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Nov 16 2018 :  11:24:01 AM  Show Profile  Reply with Quote
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.


zen is the art of being at one with the two'ness
Go to Top of Page

Pezo
Junior Member

Austria
10 Posts

Posted - Nov 19 2018 :  01:11:23 AM  Show Profile  Reply with Quote
Thanks for the suggestion. I don't use function-try blocks that often, it's just one or two places.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Nov 19 2018 :  07:21:59 AM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness
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