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
 Fully Qualified Enum usage not found
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Emiel
New Member

2 Posts

Posted - Oct 10 2013 :  04:54:58 AM  Show Profile  Reply with Quote
Given the following definition

class CMyClass 
{
public:
    enum ETest
    {
        DISABLED,
        ENABLED
    };

And the following usage

CMyClass::ETest Test = CMyClass::ETest::DISABLED;

in version 1940, "Find References" (and "Rename") cannot find the usage from the definition or vice versa. From usage other uses are found though, and "Go To Implementation" also works fine.

This seems liike a minor bug.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Oct 10 2013 :  3:05:27 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=77550

Edited by - accord on Oct 14 2013 1:45:08 PM
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Oct 10 2013 :  3:06:48 PM  Show Profile  Reply with Quote
The workaround is to use the newer format: CMyClass::DISABLED which VA find references does find.
Go to Top of Page

Emiel
New Member

2 Posts

Posted - Oct 11 2013 :  01:04:26 AM  Show Profile  Reply with Quote
Thanks, I'm aware of the workaround.
However, we decided to use fully qualified enum values for clarity in our code, so we'll rather wait for the fix.
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Nov 18 2013 :  3:07:49 PM  Show Profile  Reply with Quote
case=77550 is fixed in build 2007
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