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
 Refactor.DocumentMethod fails on "static"
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sebhad
Junior Member

Germany
14 Posts

Posted - Sep 04 2007 :  04:06:24 AM  Show Profile  Reply with Quote
The "$SymbolStatic$" placeholder does not work.

I have this example class:

[File.h]

class Example
{
public:
	static BOOL Is(BOOL b);
	BOOL Is();
};


This is what I got in the Implementation after doing the refactoring for DocumentMethod:

[File.cpp]

//*************************************************************************************
// public Example::Is
//
//	
//
// Parameter:
//	- BOOL b
//
// Returns:
//	BOOL
//
// History:
//	2007-09-04, SH:	created
//*************************************************************************************
BOOL Example::Is( BOOL b )
{
    ;
}

//*************************************************************************************
// public Example::Is
//
//	
//
// Parameter:
//
// Returns:
//	BOOL
//
// History:
//	2007-09-04, SH:	created
//*************************************************************************************
BOOL Example::Is()
{
    ;
}


You can see that there occurs no "static" in the documentation of the static method.

Thank you for this great product!





This is my Autotext for "Document Method":

//*************************************************************************************
// $SymbolStatic$$SymbolVirtual$$SymbolPrivileges$$SymbolContext$ $MethodQualifier$
//
// $end$
//
// Parameter:
// - $MethodArg$
//
// Returns:
// $SymbolType$
//
// History:
// $YEAR$-$MONTH_02$-$DAY_02$, SH: created
//*************************************************************************************





VA_X.dll file version 10.3.1559.0 built 2007.07.06
Licensed to:
VA X: [email protected] (6-user license) Support ends 2008.05.15
VAOpsWin.dll version 1.3.2.4
VATE.dll version 1.0.5.8
DevEnv.exe version 7.10.3077.0
msenv.dll version 7.10.3077.0
Font: Courier New 13(Pixels)
Comctl32.dll version 5.82.2900.2982
Windows XP 5.1 Build 2600 Service Pack 2
Single processor

Platform: Win32
Stable Includes:
C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\include;
C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\include;
C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include\\prerelease;
C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include;
C:\\Programme\\Microsoft Visual Studio .NET 2003\\SDK\\v1.1\\include;
[...]

Library Includes:
C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\mfc;
C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\atl;
C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\crt\\src;

Other Includes:

VA_X.dll file version 10.4.1626.1 built 2008.01.17
Licensed to:
VA X: [email protected] (6-user license) Support ends 2008.05.15
DevEnv.exe version 7.10.3077.0
msenv.dll version 7.10.3077.0
Font: Courier New 13(Pixels)
Comctl32.dll version 5.82.2900.2982
Windows XP 5.1 Build 2600 Service Pack 2
Single processor

Platform: Win32
Stable Includes:
C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\include;
C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\include;
C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include\\prerelease;
C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include;
C:\\Programme\\Microsoft Visual Studio .NET 2003\\SDK\\v1.1\\include;
E:\\C_Progs\\GP\\Inc;
E:\\C_Progs\\GP\\Libraries\\Include;

Other Includes:

Stable Source Directories:
C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\mfc;
C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\atl;
C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\crt\\src;


Edited by - sebhad on Sep 04 2007 05:32:55 AM

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Sep 04 2007 :  11:41:25 AM  Show Profile  Reply with Quote
Interesting. Using the following test class:

class CTestStaticDocMethod
{
public:
	static char *getClassName();
	int getClassSize();

	static bool IsClassOrange(bool b);
	int IsClassRed();

protected:
	static float IsClassRound(float f);
private:
	long IsClassRound();
};


and the default Document Method I am getting the correct results for the first 4 functions, but the wrong visibility and static for the last two. It seems that Document Method has problems with $SymbolPrivileges$ and $SymbolStatic$ for overloaded functions.

case=6260

zen is the art of being at one with the two'ness
Go to Top of Page

sebhad
Junior Member

Germany
14 Posts

Posted - Sep 05 2007 :  09:32:13 AM  Show Profile  Reply with Quote
Hi, I got the same wrong behavior as in your example.

With the test class CTestStaticDocMethod I got the documentation of the last two methods both with "static".

VA_X.dll file version 10.4.1626.1 built 2008.01.17
Licensed to:
VA X: [email protected] (6-user license) Support ends 2008.05.15
DevEnv.exe version 7.10.3077.0
msenv.dll version 7.10.3077.0
Font: Courier New 13(Pixels)
Comctl32.dll version 5.82.2900.2982
Windows XP 5.1 Build 2600 Service Pack 2
Single processor

Platform: Win32
Stable Includes:
C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\include;
C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\include;
C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include\\prerelease;
C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include;
C:\\Programme\\Microsoft Visual Studio .NET 2003\\SDK\\v1.1\\include;
E:\\C_Progs\\GP\\Inc;
E:\\C_Progs\\GP\\Libraries\\Include;

Other Includes:

Stable Source Directories:
C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\mfc;
C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\atl;
C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\crt\\src;

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Sep 05 2007 :  2:36:40 PM  Show Profile  Reply with Quote
Yes, the same effect I saw. So we are seeing the same problem, which is covered by case=6260

The "good" news is that this bug only effects overloaded functions, which is something.

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