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
 Feature Requests
 anonymous enum broke VAX outline and parse
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

superzmy
Junior Member

China
17 Posts

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

feline
Whole Tomato Software

United Kingdom
18724 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
{
public:
	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

superzmy
Junior Member

China
17 Posts

Posted - Aug 10 2022 :  12:03:43 PM  Show Profile  Reply with Quote
may has been fixed.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - Aug 11 2022 :  05:40:22 AM  Show Profile  Reply with Quote
If you can post a code sample showing the problem you have, along with your IDE and version of VA I can try the same code with the same IDE and version of VA here, and see what results I get.

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

superzmy
Junior Member

China
17 Posts

Posted - Aug 12 2022 :  02:58:30 AM  Show Profile  Reply with Quote
union U
{
enum : int {};
void foo(){}
};
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - Aug 12 2022 :  06:38:59 AM  Show Profile  Reply with Quote
Thank you for the sample code, that is rather unexpected. I have put in a bug report for this:

case=148435

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