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
 Refactoring menu stops working
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tailsu
Senior Member

37 Posts

Posted - Oct 26 2007 :  07:08:10 AM  Show Profile  Reply with Quote
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.

tailsu
Senior Member

37 Posts

Posted - Oct 26 2007 :  07:33:09 AM  Show Profile  Reply with Quote
Also, the list of methods and functions doesn't show bar().
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18746 Posts

Posted - Oct 26 2007 :  08:52:22 AM  Show Profile  Reply with Quote
I am seeing the same problem here.

Is there some reason why you are doing this? It seems an odd thing to do.

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

tailsu
Senior Member

37 Posts

Posted - Oct 29 2007 :  09:11:09 AM  Show Profile  Reply with Quote
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.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18746 Posts

Posted - Oct 29 2007 :  10:02:08 AM  Show Profile  Reply with Quote
*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

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