I am having some difficulty working out what is going on in your code, given the information you have posted here. The macros reference a macro you have not posted, and I am not sure quite what is happening. I have reproduced the parameter info tooltip bold problem with the following simplified code sample:
With this in the header file:
#define DNA_METHOD_IMP(Return_Type) Return_Type
class testMacroReturnFunc
{
public:
DNA_METHOD_IMP(void) classMemberFuncMacroReturn(const int &in_AppVar, const int &in_Value);
};
and this in the cpp file:
DNA_METHOD_IMP(void) testMacroReturnFunc::classMemberFuncMacroReturn( const int &in_AppVar, const int &in_Value ) { }
static void testGeneralCode()
{
testMacroReturnFunc classMacroReturn;
// bug - parameter info tooltip shows the return type
// in bold for the first parameter, and nothing in bold
// for the second parameter
classMacroReturn.classMemberFuncMacroReturn(2, 3);
}
I am seeing the problem, and I have put in a bug report for this:
case=64310
Can you help me extend my simple example to reproduce the problems you are seeing with alt-g?
My initial attempt is, in the header file:
// Macros definitions
#define DNA_METHOD_IMP(Return_Type) Return_Type
#define DNA_CALL
#define DNA_FUNCTION(ReturnType, MethodName) ReturnType DNA_CALL MethodName
#define DNA_METHOD(ReturnType, MethodName) virtual DNA_FUNCTION( ReturnType, MethodName )
class testMacroReturnFunc
{
public:
DNA_METHOD_IMP(void) classMemberFuncMacroReturn(const int &in_AppVar, const int &in_Value);
// alt-g on the function works fine here
DNA_METHOD(void, classMethodViaMacro)(const int &in_counter);
};
and in the matching cpp file:
DNA_METHOD_IMP(void) testMacroReturnFunc::classMemberFuncMacroReturn( const int &in_AppVar, const int &in_Value ) { }
// alt-g on the function works fine here
DNA_METHOD_IMP(void) testMacroReturnFunc::classMethodViaMacro(const int &in_counter) { }
static void testGeneralCode()
{
testMacroReturnFunc classMacroReturn;
// bug - parameter info tooltip shows the return type
// in bold for the first parameter, and nothing in bold
// for the second parameter
classMacroReturn.classMemberFuncMacroReturn(2, 3);
// alt-g on the function works fine here
classMacroReturn.classMethodViaMacro(2);
}
using VS2005 and VA 1862.