Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 anonymous enum broke VAX outline and parse
 New Topic  Reply to Topic
 Printer Friendly
Author  Topic Next Topic  

Starting Member

1 Posts

Posted - Aug 05 2022 :  1:22:50 PM  Show Profile  Reply with Quote
anonymous enum broke VAX outline and parse

Whole Tomato Software

United Kingdom
17863 Posts

Posted - Aug 08 2022 :  07:03:59 AM  Show Profile  Reply with Quote
I am assuming this is C++ that you are using? Can you please post some form of code sample to show what you are doing and what sort of problems you are seeing?

VA is having no problem with the following C++ code for me:

class enumContainingClass
	enum { AnonymousOne, AnonymousTwo, AnonymousThree };
	void CompareEnumToNumber() const
		int nOne = 1;
		int nTwo = 2;
		short nValid = 0;
		if(AnonymousOne == nOne) { nValid++; }
		if(AnonymousTwo == nTwo) { nValid++; }
		if(AnonymousThree == nTwo) { nValid++; }
		std::cout << "total valid checks is: " << nValid;

VA Outline is showing the correct outline, the colouring is correct, and Alt-G on the three anonymous enum items takes me to the enum declaration, as expected.

zen is the art of being at one with the two'ness
Go to Top of Page
   Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2021 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000