Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 anonymous enum broke VAX outline and parse

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
superzmy Posted - Aug 05 2022 : 1:22:50 PM
anonymous enum broke VAX outline and parse
5   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Aug 12 2022 : 06:38:59 AM
Thank you for the sample code, that is rather unexpected. I have put in a bug report for this:

case=148435
superzmy Posted - Aug 12 2022 : 02:58:30 AM
union U
{
enum : int {};
void foo(){}
};
feline Posted - Aug 11 2022 : 05:40:22 AM
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.
superzmy Posted - Aug 10 2022 : 12:03:43 PM
may has been fixed.
feline Posted - Aug 08 2022 : 07:03:59 AM
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.

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