Page 1 of 1

SymbolView for .cpp file doesn't show the class's methods

Posted: Tue Aug 24, 2010 10:48 pm
by pkwong
CL 2.6.0.4189 on Windows XP Pro 2002, SP 2

Using the SymbolView plugin:

For .c files, it shows all the functions in a file.
For the C++ header file, however, the "Symbol" tab does show the classes & methods.

For .cpp files, the "Symbol" tab **doesn't** show the classes or the methods in the classes
in that file.

Is there something I need to do to see the class/method names in the "Symbol" tab for
the C++ implementation files?

Attached are screenshots showing the "Symbol" tab for the header file and the implementation file.

Thanks
peter
headerFile.jpg
implementationFile.jpg

Re: SymbolView for .cpp file doesn't show the class's methods

Posted: Thu Aug 26, 2010 7:01 pm
by eranif
pkwong wrote:For .cpp files, the "Symbol" tab **doesn't** show the classes or the methods in the classes
in that file.
Cant seem to reproduce it here

Is it possible to have the workspace (source files/project)?

I would also recommend you to try and use the trunk codelite (it has an improved SymbolView plugin)

Eran

Re: SymbolView for .cpp file doesn't show the class's methods

Posted: Thu Aug 26, 2010 11:38 pm
by pkwong
Eran,
I can send you a sample project/file that both show and doesn't show the problem (using the same CL version). Hmm, go figure why it works
for one project but not for the other.

By what means should I send it to you?

BTW - for the trunk version of CL, do I have to compile it? (I normally just use the released binaries).

peter

Re: SymbolView for .cpp file doesn't show the class's methods

Posted: Thu Aug 26, 2010 11:46 pm
by pkwong
I attached a zip file with the files.

It has 2 workspaces/projects, both of which use the same 2 .h and .cpp files.

The "cl-test" workspace/project works (ie. symbol tab for the .cpp file shows the class and methods).

The "adapter" workspace/project doesn't work (ie. it has the problem where the symbol tab does not show the .cpp file's class & methods).

Perhaps it is the layout of the workspace/project that is the problem?

peter
CL-test.zip
- I miss the outline tab - never had a problem with it...

Re: SymbolView for .cpp file doesn't show the class's methods

Posted: Fri Aug 27, 2010 9:14 am
by eranif
pkwong wrote:Perhaps it is the layout of the workspace/project that is the problem?
this was my first suspect and indeed it is the problem.

The good news: the trunk version of SymbolView is working fine (one of the improvements I did was changing the way it is locating the "other" file)
works.png
Eran

Re: SymbolView for .cpp file doesn't show the class's methods

Posted: Tue Aug 31, 2010 1:28 am
by pkwong
Thank you Eran.

peter