Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Problem with namespaces and create declaration

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
jwiesemann Posted - Sep 22 2009 : 10:49:24 AM
Hi,

when trying to use create declaration on a function that belongs to a namespace that spreads over several files VA likely puts the declaration to the wrong file:

file1.h

namespace foo
{
void function1(void);
}

file2.h

namespace foo
{
void function2(void);
}

file1.cpp
namespace foo
{
void function1(void) {}

void function3(void) {}
}

file2.cpp
namespace foo
{
void function2(void) {}

void function4(void) {}
}

Create declaration will put function3 and function4 to the same header file. (I gues it always is the last one read.) This is quite annoying when working with a large library that's in a namespace.

Create implementation has the same problem!

VA_X.dll file version 10.5.1727.0 built 2009.06.12
With VC++ 6.0 and VC++ 2008 professional.

Joachim
1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Sep 23 2009 : 4:44:12 PM
I tried it and it worked for me in VS2008 and VA 1736.
Are file1.h and file1.cpp in the same directory?
Are file2.h and file2.cpp in the same directory?
What happens if you press alt+o from file1.h and what happens if you press alt+o from file2.h. Do you get to the corresponding file?

Can you please try the latest build to see if this helps?
http://www.wholetomato.com/binaries/VA_X_Setup1736.exe

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