Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1626 rename on forward definitions

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
Uniwares Posted - Jan 28 2008 : 4:35:47 PM
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.
7   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jan 29 2008 : 12:57:25 PM
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.
Uniwares Posted - Jan 29 2008 : 08:44:25 AM
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.
feline Posted - Jan 29 2008 : 08:29:25 AM
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?
Uniwares Posted - Jan 29 2008 : 08:06:53 AM
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.
feline Posted - Jan 29 2008 : 07:23:23 AM
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.
Uniwares Posted - Jan 28 2008 : 6:06:23 PM
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
{
};
feline Posted - Jan 28 2008 : 5:48:33 PM
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.

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