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
 1626 rename on forward definitions
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Jan 28 2008 :  4:35:47 PM  Show Profile  Reply with Quote
When no definition on a class is available, VAX does not allow a rename on the class's forward definition. Actualy no operation is available on a class like that.

feline
Whole Tomato Software

United Kingdom
18942 Posts

Posted - Jan 28 2008 :  5:48:33 PM  Show Profile  Reply with Quote
using VS2005 and VA 1626 I just added the following line to a cpp file:

class CForwardDecalreNonExistantClass;

VA is offering me Find References and Rename on the class name.

I am guessing this is a side effect of VA being confused by your namespace macro's.

zen is the art of being at one with the two'ness
Go to Top of Page

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Jan 28 2008 :  6:06:23 PM  Show Profile  Reply with Quote
Might be, but then again, if I add a forward definition inside one of my namespaces and right after a class definition, the refacoring menu is enabled on the forward definition.

like:
class CForwardDecalreNonExistantClass;

// some comments

class CForwardDecalreNonExistantClass
{
};
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18942 Posts

Posted - Jan 29 2008 :  07:23:23 AM  Show Profile  Reply with Quote
If you right click on the forward declaration with no class, and look in the "Refactor (VA X)" sub-menu, or place the caret into the class name and look at the:

VAssistX -> Refactor

IDE menu are you seeing any items enabled here?
Is the class name on the forward declaration coloured as a class?

I am really not sure why this works for me but not for you.

zen is the art of being at one with the two'ness
Go to Top of Page

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Jan 29 2008 :  08:06:53 AM  Show Profile  Reply with Quote
Without acompanying class, I see "refactoring not available on symbol", with class I see the usual "Add member" "rename", "find references".

It is colored correctly as class.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18942 Posts

Posted - Jan 29 2008 :  08:29:25 AM  Show Profile  Reply with Quote
Do you see the same effect if you place this outside of your namespace macro's?

Do you have the time to try this in a simple test project, assuming you have one on hand?

zen is the art of being at one with the two'ness
Go to Top of Page

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Jan 29 2008 :  08:44:25 AM  Show Profile  Reply with Quote
Uhm, I should have noticed it, its once more the namespace that causes the problem. Outside or in a "clean" project it does not happen.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18942 Posts

Posted - Jan 29 2008 :  12:57:25 PM  Show Profile  Reply with Quote
It is very easy to miss things like that, I have done this myself any number of times *oops*. Hopefully the namespace macro fix will arrive soon.

zen is the art of being at one with the two'ness
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