Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Refactor.DocumentMethod fails on "static"

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
sebhad Posted - Sep 04 2007 : 04:06:24 AM
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:
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Sep 05 2007 : 2:36:40 PM
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.
sebhad Posted - Sep 05 2007 : 09:32:13 AM
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".
feline Posted - Sep 04 2007 : 11:41:25 AM
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

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000