Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Refactoring menu stops working

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
tailsu Posted - Oct 26 2007 : 07:08:10 AM
Try this code.

#define CLASS(name) class name

CLASS(foo)
{
public:
void bar();
};

When invoking the refactoring menu on bar() half the refactoring options (like Create Implementation) get missing.
4   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Oct 29 2007 : 10:02:08 AM
*ah* I wondered if it was something like that. I just did not want to assume that was the reason.

Changing the code to read:

#ifndef VA_DOES_NOT_UNDERSTAND_THIS
#define CLASS(name) class name

CLASS(foo)
#else
class foo
#endif
{
public:
	void bar();
};


fixes the problem, but it does make the code a bit harder to read, and it requires naming the class twice. Once for the real code, and once for the "dummy" class keyword that VA needs.

I have put in a bug report for VA not understanding this:

case=9589
tailsu Posted - Oct 29 2007 : 09:11:09 AM
Yes. In my case the CLASS macro declares several additional constructs that are required for this class to be used in a certain way. It can't be done otherwise.
feline Posted - Oct 26 2007 : 08:52:22 AM
I am seeing the same problem here.

Is there some reason why you are doing this? It seems an odd thing to do.
tailsu Posted - Oct 26 2007 : 07:33:09 AM
Also, the list of methods and functions doesn't show bar().

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