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
 Class definitions in cpp files ignored
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ondrej Spanel
Senior Member

40 Posts

Posted - Jun 09 2004 :  02:45:05 AM  Show Profile
For a long time "Go to definition" works very unreliably in my project. When trying to reproduce the problem, I have found an issue which may or may not be related, but it seems to be quite obvious and very easy to reproduce in build 1239 (it is 100 % reproducible on my setup):

Any class which is defined only in the cpp file works only partially. While autocomplete works quite well on such classes, the class is not shown in the Find member or in the VA View at all. To reproducehe create a simple solution and project with only one cpp file, and insert the code below into the cpp file. When opening the Find symbol dialogue with "Show only symbols defined in the current workspace" you will not see any symbols at all. If you will uncheck the box, you will see a plenty of symbols, but no SomeClass.

The same applies for VA View - there is no SomeClass (and the Symbols in Workspace combo is empty). When you add any header file (.h or .hpp) into the project and write and class definition there, it will appear both in the Symbols in Workspace and in Find the symbol.

The Goto and autocomplete works well even on the class SomeClass and its members, but they simply do not appear in the Find symbol.


class SomeClass
{
  int _sc;
  
  public:
  int SC(){return _sc;}
  void SomeFunction();
};

void SomeClass::SomeFunction()
{
  _sc = 0;
}

int main()
{
  SomeClass b;
  return 0;
}

support
Whole Tomato Software

5566 Posts

Posted - Jun 09 2004 :  6:59:17 PM  Show Profile
case=79

Related thread:

http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=2345

Whole Tomato Software, Inc.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000