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
 Find definition/reference confused by tilde
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pbrown
Senior Member

USA
44 Posts

Posted - Oct 30 2008 :  11:22:04 AM  Show Profile  Reply with Quote
I ran into a problem today attempting to find references of a symbol that I know is defined and recognized by VAX (1649).

The affected symbol is used in an old-school #define-based bitfield operations -- code something like the following:

#define FIELD_0 (1<<0)
#define FIELD_1 (1<<1)
...
unsigned bits;
...
bits &= ~FIELD_0;

In that code, if I put the cursor in the middle of "FIELD_0" and select "Find References", I get a "Place the caret on a symbol before running Find References" error dialog. "Go To Implementation" similarly fails.

If I change the code to put a space between the tilde and symbol, everything works normally.

bits &= ~ FIELD_0;

Note that if I go to the definition of FIELD_0 and run "Find References", it appears to find everything, and highlights the use of FIELD_0 with the tilde, space or no.

So the tilde doesn't seem to be confusing VAX's parser -- just whatever logic exists to determine the symbol at the caret.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Oct 30 2008 :  4:25:59 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=4312
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Oct 04 2011 :  11:17:41 PM  Show Profile  Reply with Quote
case=4312 is fixed in build 1859

Whole Tomato Software, Inc.
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