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
 Macros for STL not working
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tesshu
New Member

Canada
5 Posts

Posted - Nov 29 2006 :  12:45:24 PM  Show Profile  Reply with Quote
//==================================================================================================
//==================================================================================================
#include <vector>
//==================================================================================================
//==================================================================================================
#define STL_Vector std::vector

#define STL_DefineVec( _type ) \ typedef STL_Vector<_type> _type##Vec; \ typedef _type##Vec::iterator _type##VecIter; \ typedef _type##Vec::reverse_iterator _type##VecRIter;

#define STL_DefinePtrVec( _type ) \ typedef STL_Vector<_type*> _type##PtrVec; \ typedef _type##PtrVec::iterator _type##PtrVecIter; \ typedef _type##PtrVec::const_iterator _type##PtrVecConstIter; \ typedef _type##PtrVec::reverse_iterator _type##PtrVecRIter;
//==================================================================================================
//==================================================================================================
class SomeClass
{
int foo;
float bar;
};
//==================================================================================================
//==================================================================================================
int main( int argc, void** argv )
{
STL_DefineVec( SomeClass );

// SomeClassVec gives me a red correction line and also doesn't highlight blue (stays black).
// This used to work when I was using VA_X_Setup1293.exe. One thing I did notice was that when
// I forced the database to be rebuilt, it highlights fine with no correction line while the
// database is building. Once the parsing is done it goes back to black and the red correction
// line.
SomeClassVec vecFooBar;

return 0;
}


VA_X.dll file version 10.3.1541.0 built 2006.11.20
Licensed to:
VA X: [email protected] (1-user license) Support ends 2007.11.25
VAOpsWin.dll version 1.3.3.8
VATE.dll version 1.0.5.0
DevEnv.exe version 8.0.50727.42
msenv.dll version 8.0.50727.42
Font: Courier New 13(Pixels)
Comctl32.dll version 5.81.4968.2500
Windows 2000 5.0 Build 2195 Service Pack 4
Single processor

Platform: Win32
Stable Includes:
D:\\Program Files\\Microsoft DirectX 9.0 SDK (October 2004)\\Include;
D:\\Program Files\\Microsoft Visual Studio 8\\VC\\include;
D:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\include;
D:\\Program Files\\Microsoft Visual Studio 8\\VC\\PlatformSDK\\include;
D:\\Program Files\\Microsoft Visual Studio 8\\VC\\PlatformSDK\\common\\include;
D:\\Program Files\\Microsoft Visual Studio 8\\SDK\\v2.0\\include;
D:\\DEV\\NVidiaOpenGL\\OpenGL\\Include;

Library Includes:
D:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\mfc;
D:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\atl;
D:\\Program Files\\Microsoft Visual Studio 8\\VC\\crt\\src;

Other Includes:


feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Nov 30 2006 :  2:10:37 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description. VA's parser has been re-written since 1293, partly to fix some long standing bugs that could not be fixed in the old parser, and partly to enable us to offer C++ refactoring.

Unfortunately some complex cases were broken in the process, and this seems to be one of them.

case=3873

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