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
 1727: Acronyms are not working as expected
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

xMRi
Tomato Guru

Germany
315 Posts

Posted - Jun 18 2009 :  04:46:43 AM  Show Profile  Reply with Quote

Type the code

class CSerializationFileList : public CTypedPtrList<CObList,CSerializationFile*>
{
public:
	CSerializationFileList()	{ }
	~CSerializationFileList()
	{
		// Free all data pointer
		for (POSITION pos=GetHeadPosition(); pos; )
			delete GetNext(pos);
	}
};

void Foo()
{
 CSerializationFileList lst;
 lst.ghp
}


I would expect that after typing ghp I would see GetHeadPosition.
I can force it by Ctrl+Space.
But Even if I select it, I don't get the closing parenthesis.

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Jun 18 2009 :  1:42:18 PM  Show Profile  Reply with Quote
Can you please go to:

VA Options -> System Info -> Copy Info

and paste the details (from the clipboard) into your reply. This will give us the basic information about your setup.

Using VS2005 VA does not seem to think that GetHeadPosition is a member of CTypedPtrList, according to the HCB (bottom half of VA View).

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

xMRi
Tomato Guru

Germany
315 Posts

Posted - Jun 19 2009 :  01:04:32 AM  Show Profile  Reply with Quote
VA_X.dll file version 10.5.1727.0 built 2009.06.12
Licensed to:
VA X: ...

DevEnv.exe version 8.0.50727.867
msenv.dll version 8.0.50727.867
Font: Courier New 13(Pixels)
Comctl32.dll version 6.10.6002.18005
Windows Vista 6.0 Build 6002 S
4 processors (x86)

Platform: Custom
Stable Includes:
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\include;
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\include;
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\PlatformSDK\\include;
C:\\Program Files\\Microsoft Visual Studio 8\\SDK\\v2.0\\include;
C:\\Dev\\Root\\Libraries\\Include\\AGLCBPro;

Other Includes:

Stable Source Directories:
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\mfc;
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\mfcm;
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\atl;
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\crt\\src;
C:\\Dev\\Root\\Libraries\\Projects\\AGLCBPro;

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Jun 19 2009 :  2:15:27 PM  Show Profile  Reply with Quote
There is nothing odd in your include directories, so that should not be a factor. I have just created a simple test VS2005 solution for this. Can you try downloading and opening it please, this way we will both be working on the same code:

http://forum.wholetomato.com/colin/forumimages/8819_test_va_listbox_filter.zip

I have turned on "Get content from default Intellisense" and typing ".ghp" after "lst" in the cpp file works correctly for me, filtering the listbox down to only show one item.

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

xMRi
Tomato Guru

Germany
315 Posts

Posted - Jun 22 2009 :  03:22:31 AM  Show Profile  Reply with Quote
OK!
My switch "Get content from default Intellisense" was off.
After turning it on, it works as expected.

Thanks for you excellent support.

BTW: I don't know why I turned it off. The documetation on your homepage in http://www.wholetomato.com/products/features/members.asp
"Choice off C/C++ Parser"

What is the real benefit in using your parser?

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Jun 22 2009 :  12:38:38 PM  Show Profile  Reply with Quote
To a degree its a matter of personal preference. There are some things that our parser is better at understanding, while there are other things that the IDE's parser is better at understanding.

For most of our users our parser seems to be more reliable and effective, but this is not always the case, so we give you the option of using which ever one works better for you for listboxes

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

xMRi
Tomato Guru

Germany
315 Posts

Posted - Jun 23 2009 :  02:27:41 AM  Show Profile  Reply with Quote
Hmmm.
I am not quit happy with this all.

1. Using the IDE's parser I get correct acronyms.
2. But using the IDE's parser it is not possible to get function and classnames within a remark block with Ctrl+Space.
3. So Using the VAX parser I have no correct acronyms but I can get symbols by Ctrl+Space

I have an idea: Fix your parser that it shows the correct acronyms.

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Jun 23 2009 :  12:17:56 PM  Show Profile  Reply with Quote
Something odd is going on here. Acronyms should not be effected by "Get content from default Intellisense". Using your test code I am seeing a problem, with VA's parser no inherited class members are listed:

case=28540

I don't know why, there does not seem to be anything particularly difficult about this code. Since the listbox only contains 2 items - the constructor and destructor - asking acronyms to find an item that is not in the listbox is never going to work.

Acronyms in general should "just work" regardless of which parser is populating the listbox. Can you try the following test please:

static void testListboxAcronyms()
{
	std::string strTest;
	strTest.ga|;
}


when I ".ga" in this code, with "Get content from default Intellisense" turned on or off the listbox filters down to the single item "get_allocator" quite happily.

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