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
 Technical Support
 [1825] value and pointer colored like keywords
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Luke1410
Senior Member

32 Posts

Posted - Jun 18 2010 :  6:45:24 PM  Show Profile  Reply with Quote
Hi,

using the following sample (in a C++ project), I see some IMO undesired coloring of the identifiers "pointer" and "value" (tested in VS 2005 SP1 and VS 2008 SP1):

void test() {
	pointer i; // pointer is correctly underlined as a syntax error, but is also colored blue (I would expect it to be black)
	int value; // value is colored blue --- I would expect it to be black, too.
	testing a; // correctly colored (no issue here --- both "testing" and "a" are black and testing is correctly underlined as a syntax error
}

// this is how I would expect it to be colored:
void test() {
	pointer i;
	int value;
	testing a;
}


Is this a limitation of VAX? Do I have to change some settings to get value and pointer colored black like "testing"?

Regards,
Stefan

Edited by - Luke1410 on Jun 18 2010 6:45:51 PM

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jun 21 2010 :  03:15:29 AM  Show Profile  Reply with Quote
I am seeing the same effect with value:

case=37888

About pointer: VA is coloring every variable it had parsed, even if the file isn't included. Pointer is defined in generics.h, you can check it if you press alt+g over "pointer".
Go to Top of Page

Luke1410
Senior Member

32 Posts

Posted - Jun 21 2010 :  8:52:48 PM  Show Profile  Reply with Quote
I cannot reproduce ur steps about the pointer identifier.
If I press ALT+G on the pointer, I see a list with the following entries:
- set:172 typedef typename _Mybase::pointer pointer
- set:67 typedef typename _Mybase::pointer pointer
- regex:2671 typedef const value_type *pointer
- xstring:507 typedef _Tptr pointer

Hence I'm not seeing any reference to generics.h in my list which is what I expect, since I'm not including any files in the test project.
The weird thing is that I'm still seeing the list given above, where all entries are actually class-internal typedefs and hence should not apply to the pointer-identifier used in the test()-function, IMO.
Or am I missing something?
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jun 22 2010 :  2:37:58 PM  Show Profile  Reply with Quote
Yes, you are right. But this is sort of by design. Coloring code has to be terrifically fast to keep up with "agile" scrolling, so we are analyzing the context loosely:

case=660

Edited by - accord on Jun 22 2010 2:41:30 PM
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Feb 26 2014 :  10:40:19 AM  Show Profile  Reply with Quote
case=37888 is fixed in build 2029
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