Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Find definition/reference confused by tilde

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
pbrown Posted - Oct 30 2008 : 11:22:04 AM
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.
2   L A T E S T    R E P L I E S    (Newest First)
support Posted - Oct 04 2011 : 11:17:41 PM
case=4312 is fixed in build 1859
accord Posted - Oct 30 2008 : 4:25:59 PM
I am seeing the same effect here. Thank you for the clear description.

case=4312

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