Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Incorrect syntax coloring for "using" and "typedef

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
uri1975 Posted - Feb 24 2018 : 03:03:22 AM
I installed a clean vs2017 and VisualAssist 2248.
Found a problem with the coloring using typedef and using.


int func (int v1, int v2) {return v1 + v2;}

typedef int myInt;

typedef int (*pf) (int, int);    // Bug!  pf - function/method type
using pf2 = int (*) (int, int);  // Bug!  pf - function/method type
typedef decltype(func) *pf_decl;		// Correct

auto ret_func () -> int (*) (int, int)  // Bug!  ret_func - not function type
{return func;}

int main ()
{
	myInt tmp;
	pf ptr1 = func;  // Bug
	pf_decl ptr2 = func;

	tmp = ptr1(2, 3);
	tmp = ptr2(4, 5);
	ptr2 = ret_func();
	tmp = ptr2(6, 7);

	return 0;
}








Microsoft VS2017 15.5.1
Microsoft .NET Framework 4.6.01055

VA_X.dll file version 10.9.2248.0 built 2017.12.16
DevEnv.exe version 15.0.27130.2003 Professional
msenv.dll version 15.0.27130.2003
Comctl32.dll version 6.10.7601.17514
Windows 7 6.1 Build 7601 Service Pack 1
2 processors (x86)
Language info: 1251, 0x419
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Feb 26 2018 : 07:28:18 AM
This is something we are aware of, but it's not currently a priority, so I am not sure when we will tackle this. But we are aware of it, and requests like this help us to track interest in different bugs and features.
uri1975 Posted - Feb 25 2018 : 04:27:29 AM
Thank you for your attention. I understand that the typedef construct are quite complex for parsing and I hope for a speedy solution of the problem.

Good luck in developing such an excellent assistant as VisualAssist.
feline Posted - Feb 24 2018 : 1:02:19 PM
Thank you for the clear example, we are aware of this problem, and I have added this example to the bug report:

case=90545

This is a little tricky for our colouring code, since it is designed to run quickly, to keep up with you scrolling through your code, and situations like this require a bit more analysis to understand correctly.

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