Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Syntax coloring problem with c++ 11

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
dgallo Posted - Nov 28 2013 : 05:17:09 AM
Hi,

I'm facing a syntax coloring problem with c++ 11 in-class initialization form:



It's seems "{}" syntax is causing trouble to VAssist.

4   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Feb 26 2014 : 10:41:00 AM
case=79074 is fixed in build 2029
feline Posted - Dec 17 2013 : 11:09:50 PM
Apologies for the slow reply. Thank you for the clear code example, I am seeing the same problem with this code:

case=79074
dgallo Posted - Dec 11 2013 : 03:13:56 AM
Using VAS2007 and VS2013, Windows 8.1 x64

With this contruct I was able to reproduce the problem.
class testGeneralCode
{
	int *instanceOne{};
	int *instanceTwo{}, *instanceThree{}, *instanceFour{};
};



feline Posted - Dec 10 2013 : 3:31:19 PM
Apologies for the slow reply. Using VS2007 and VS2013 I am seeing a different result. I have added the following very simple test case to a .cpp file:

class testCreatingInstances { };

void testGeneralCode()
{
	testCreatingInstances *instanceOne{};
	testCreatingInstances *instanceTwo{}, *instanceThree{}, *instanceFour{};
}


All 4 variables are shown in the same colour by VA, the colour I have set for local variables. I have local variables in bold turned on.



If you place the caret into "m_CheckInstitute" and "m_CheckService" in turn, what is shown in the VA definition field? This is the right hand side of the two fields VA shows, normally at the top of the editor.

For my sample code I am seeing:

testCreatingInstances *instanceTwo
testCreatingInstances * instanceThree

which seems reasonable and correct.

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