Author |
Topic |
|
hrun
Junior Member
13 Posts |
Posted - Jan 31 2004 : 8:26:58 PM
|
It cannot parse template class use a type parameter as base!
For example, the CWindowImpl from ATL. it's define is like
template <class T, class TBase /* = CWindow */, class TWinTraits /* = CControlWinTraits */> class ATL_NO_VTABLE CWindowImpl : public CWindowImplBaseT< TBase, TWinTraits >
and
template <class TBase = CWindow, class TWinTraits = CControlWinTraits> class ATL_NO_VTABLE CWindowImplBaseT : public CWindowImplRoot< TBase >
and
template <class TBase /* = CWindow */> class ATL_NO_VTABLE CWindowImplRoot : public TBase, public CMessageMap
for my class
class CRealView : public CWindowImpl< CRealView, CWindow > { }
visual assist donot treat member from CWindow as member of CRealView!
|
|
luceric
New Member
3 Posts |
Posted - Apr 06 2005 : 6:01:01 PM
|
This is a major showstopper here! Everything was going well until I realized VA cannot show me the members of my class which is derived from CWindowImpl. VC++ dotNet 2003.
Enabling using Intellisense does work, but I've looked into VA because intellisense was failing with our collection classes.
The problem is autocompletion not working with member functions such as SetWindowPos. It will show the SDK version instead. |
Edited by - luceric on Apr 06 2005 6:02:50 PM |
|
|
Stephen
Tomato Guru
United Kingdom
781 Posts |
Posted - Apr 07 2005 : 04:10:09 AM
|
VA support for templates is weak. I think WT have said they intend to improve it at some point, but it doesn't seem to be one of their top priorities. |
Stephen Turner ClickTracks http://www.clicktracks.com/ Winner: ClickZ's Best Web Analytics Tool 2003 & 2004
|
|
|
jpizzi
Tomato Guru
USA
642 Posts |
Posted - Apr 08 2005 : 12:37:03 AM
|
Or maybe it is just a hard problem. |
Joe Pizzi |
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Apr 09 2005 : 5:17:17 PM
|
from the outside it looks like a hard problem, but that is just an educated guess.
case=201 |
zen is the art of being at one with the two'ness |
|
|
luceric
New Member
3 Posts |
Posted - Apr 09 2005 : 5:26:17 PM
|
Are they working on improving the C++ template parsing? We need know to evaluate if and how many copies of Visual Assist we would buy.
Alternativly, is there a way we could 'help' Visual Assist, for example by giving it some sort of configuration file where we would define by hand classes it can't parse? We don't care if we have to take a few hours to define collection classes that everyone in the company uses.
|
Edited by - luceric on Apr 09 2005 5:27:40 PM |
|
|
WannabeeDeveloper
Tomato Guru
Germany
775 Posts |
Posted - Apr 09 2005 : 6:12:40 PM
|
Files to reproduce certain problems are always welcome. If they do not cause you too much effort/work, you may mail them to [email protected] and please put the Topic ID (1356) into the mailbody. A short description of the bug/wrong behaviour would be nice...
You can also try to contact support for a longer evaluation-period, if you need some more time. Not promising anything, but with a reasonable explanation this may be possible...
The case-ID is quite 'old', so the devs are already struggling with this one for some time. Maybe your files may speed-up bugfixing.
|
|
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Apr 13 2005 : 3:49:59 PM
|
quote: Originally posted by luceric
Alternativly, is there a way we could 'help' Visual Assist, for example by giving it some sort of configuration file where we would define by hand classes it can't parse? We don't care if we have to take a few hours to define collection classes that everyone in the company uses.
if you look in:
C:\\Program Files\\Visual Assist X\\Misc
there should be a file called "StdafxVa.h"
from memory VA parses this file very early on. based on the comment line:
// VA needs a bit of help parsing some STD libs
this is used to help the parser make sense of some of the STL code. so it is possible by adding suitable definitions to this file you could give VA enough help to get good results in your specific case.
however i have never done this myself so i don't know how easy this will be. |
zen is the art of being at one with the two'ness |
|
|
support
Whole Tomato Software
5566 Posts |
Posted - Apr 19 2005 : 1:23:58 PM
|
If you can create a tiny example to exhibit the problem, it would help us provide a workaround. As mentioned, we might coax VA X into reading alternate definitions that give you the info you want.
Send a zipped example via email to [email protected] |
|
|
|
Topic |
|