Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Intellisense issue in macro declared class

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
mariob Posted - Nov 30 2014 : 12:47:35 PM
For some reason, the framework my team is using for Unit Tests requires classes and methods to be declared with a certain macro. Unfortunately, that confuses Visual Assist big time and pretty much nothing works in our UT methods (intellisense in particular, but all features that require a form of intellisense). Here is what my code looks like:

TESTCLASSEX(MyTestClass, SomeBaseClass)
{
TESTMETHOD(MyUTMethod)
{
MyObjectThatVARecognizesEverywhereElseButNotHere myObject;
myObject.SomeMethodThatNeverShowsUpBecauseVADoesntRecognizeThisObjectInHere();
}
}

Is there some sort of customization that I can do to work around the problem? I don't expect VA to recognize the UT class, etc., but at least to be able to use intellisense while coding inside the UT method.

In other words, it would be great if VA would recognize "MyObjectThatVARecognizesEverywhereElseButNotHere".

Thanks!
-Mario
1   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Dec 01 2014 : 2:07:55 PM
You could try creating a local va_stdafx.h as described here: http://docs.wholetomato.com/?W302

Add the following lines to the file, then rebuild the VA symbol database and restart VS.

#define TESTCLASSEX(className, baseclass) class className : public baseclass
#define TESTMETHOD(methodName) void methodName()

// include a final blank line


Any improvement with this?

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