Author |
Topic |
|
3dSorcery
New Member
5 Posts |
Posted - Sep 08 2006 : 11:18:54 AM
|
Hey There..
The issue that I'm having is with macro expansion inside the function parameter tooltips. I was wondering if there was any way to make this work or if it's just not supported. There is a checkbox under options titled "Evaluate all macros used in definitions", but this doesn't seem to fix the problem. VS2005 (and 2003 as well, I believe) will do this automatically, and it works fine if I turn VA off. If you would like a screen shot of what I'm talking about I can provide one. Any help is greatly appreciated!
- Chris |
|
jpizzi
Tomato Guru
USA
642 Posts |
Posted - Sep 08 2006 : 1:21:38 PM
|
I want to say that it is just not supported. But, I don't know that for sure.
Support? |
Joe Pizzi |
|
|
support
Whole Tomato Software
5566 Posts |
Posted - Sep 08 2006 : 1:46:39 PM
|
Can you post a simple example of what you expect and what you get? |
|
|
3dSorcery
New Member
5 Posts |
Posted - Sep 08 2006 : 10:05:41 PM
|
Sure,
First, I'm defining a macro that contains function parameters. I do this because the same function parameters show up in about 5 different levels of code (because of the complex class hierarchy) and I don't want to have to touch the code in 5 places to make a change. So something like this for exampe...
#define ADD_ARGS int a, int b
Then I declare the function...
int AddFunc(ADD_ARGS);
Then when I use the function, the intellisense for the parameter list shows up as (ADD_ARGS) when I'm expecting to see (int a, int b).
Again, the main reason that I feel visual assist SHOULD do this is because the default VS2005 (and 2003 I think) do this and it's extremely helpful. |
|
|
3dSorcery
New Member
5 Posts |
Posted - Sep 12 2006 : 7:23:16 PM
|
Bump.... Should I be putting this in the requested features? |
|
|
V.Solo
New Member
7 Posts |
Posted - Sep 12 2006 : 10:18:08 PM
|
[offtopic] 3dSorcery : <cough>, <cough> [/offtopic]
|
|
|
rhummer
Tomato Guru
USA
527 Posts |
Posted - Sep 12 2006 : 11:23:20 PM
|
This is a tough one for to make a call on IMO.
By default I wouldn't expect the macro to expand when used in that way.
I'll query support on this to get their take. |
Tools Engineer - Raven Software VS2005 SP2/VS2008 SP1 - VAX <LATEST> - Win 7 x64
|
|
|
sean
Whole Tomato Software
USA
2817 Posts |
Posted - Sep 13 2006 : 02:08:58 AM
|
It's not currently supported but since vs2005 does it that way we'll have to at least consider it. Off hand, I would wonder if there are more cases where that behavior would not be welcome though. |
|
|
3dSorcery
New Member
5 Posts |
Posted - Sep 13 2006 : 10:22:30 AM
|
I agree that there may be cases where that behavior wouldn't be desired, so I think that it makes a great checkbox in the options :) |
|
|
jpizzi
Tomato Guru
USA
642 Posts |
Posted - Sep 14 2006 : 02:15:13 AM
|
Are you asking for expansion in the tooltip only, or actually in the code if a suggestion is accepted? |
Joe Pizzi |
|
|
support
Whole Tomato Software
5566 Posts |
Posted - Sep 14 2006 : 10:43:04 AM
|
We confirmed VS2005 resolves macros within paramater tooltips; VA X does not. One can make an argument for either case.
We wrote up a request to make VA X display both, i.e.:
1 of 2 ADD_ARGS 2 of 2 int a, int b
case=2527 |
|
|
3dSorcery
New Member
5 Posts |
Posted - Sep 15 2006 : 8:24:58 PM
|
Awesome!
Sounds good. Can't wait to see if it gets added :) |
|
|
|
Topic |
|