Author |
Topic |
|
Uniwares
Tomato Guru
Portugal
2322 Posts |
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. |
|
feline
Whole Tomato Software
United Kingdom
19022 Posts |
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. |
zen is the art of being at one with the two'ness |
|
|
Uniwares
Tomato Guru
Portugal
2322 Posts |
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
Whole Tomato Software
United Kingdom
19022 Posts |
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. |
zen is the art of being at one with the two'ness |
|
|
Uniwares
Tomato Guru
Portugal
2322 Posts |
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
Whole Tomato Software
United Kingdom
19022 Posts |
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? |
zen is the art of being at one with the two'ness |
|
|
Uniwares
Tomato Guru
Portugal
2322 Posts |
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
Whole Tomato Software
United Kingdom
19022 Posts |
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. |
zen is the art of being at one with the two'ness |
|
|
|
Topic |
|