News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Please add new plugins for Cscope, thanks!

Started by Loaden, January 06, 2010, 09:48:30 AM

Previous topic - Next topic

Loaden

Cccc and CppCheck plug-in is really great!
Please add new plugins for Cscope, thanks!:http://cscope.sourceforge.net/
Thank you, CB development team!

MortenMacFly

Quote from: Loaden on January 06, 2010, 09:48:30 AM
Cccc and CppCheck plug-in is really great!
Proposal to increase Cscope plug-ins:http://cscope.sourceforge.net/
Thank you, CB development team!
Please don't cross-post!

Besides: What do you mean with "increase"???
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Loaden

Quote from: MortenMacFly on January 06, 2010, 10:05:56 AM
Quote from: Loaden on January 06, 2010, 09:48:30 AM
Cccc and CppCheck plug-in is really great!
Proposal to increase Cscope plug-ins:http://cscope.sourceforge.net/
Thank you, CB development team!
Please don't cross-post!

Besides: What do you mean with "increase"???
Sorry, this post is to start here, for fear of plug-in development team can not see, but they were SVN6023 posts a month Replies Riga.
English is not good, the English are using the google translation.
What I mean is: It is recommended to add a new plug-ins.

ollydbg

#3
I found there is a Chinese site named "cbforce" http://www.cbforge.com/ which has donea some effort on doing that.  you can search it on Google, I can't enter here, because l use my mobile now.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Loaden

Quote from: ollydbg on January 06, 2010, 11:52:29 AM
I found there is a Chinese site named "cbforce" which has donea some effort on doing that.  you can search it on Google, I can't enter here, because l use my mobile now.
Thanks! But i can not find this site, perhaps it has closed.

blueshake

Quote from: Loaden on January 06, 2010, 01:40:41 PM
Quote from: ollydbg on January 06, 2010, 11:52:29 AM
I found there is a Chinese site named "cbforce" which has donea some effort on doing that.  you can search it on Google, I can't enter here, because l use my mobile now.
Thanks! But i can not find this site, perhaps it has closed.

I can not enter today.
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

ollydbg

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Loaden

Quote from: ollydbg on January 06, 2010, 02:24:22 PM
sorry
it is http://www.cbforge.com/
Thanks! But this is only the use of a CB analysis. I would suggest that CB team Cccc and CppCheck based on the production of a new plug-in, used to support Cscope.
My levels are not sufficient to make a plug-in level.

danselmi

only roughly tested!

[attachment deleted by admin]
spell checker plugin: [url="http://developer.berlios.de/projects/spellchecker/"]http://developer.berlios.de/projects/spellchecker/[/url]
nassi shneiderman plugin: [url="http://developer.berlios.de/projects/nassiplugin"]http://developer.berlios.de/projects/nassiplugin[/url]

Loaden

Quote from: danselmi on January 06, 2010, 08:23:34 PM
only roughly tested!
Oh! Good!! Thank you very much!
I will testting and report it.

Loaden

Quote from: Loaden on January 07, 2010, 02:48:36 AM
Quote from: danselmi on January 06, 2010, 08:23:34 PM
only roughly tested!
Oh! Good!! Thank you very much!
I will testting and report it.
I have compiled Cscope plug-in, found that the plug-in does not work. After clicking the menu command line, works where the directory does generate cscope.out, but Cscope.dll obviously can not generate the results reported to the CB.


[attachment deleted by admin]

Loaden

I read over the code, find this plug-in should be no analysis of the data to realize cscope.out. As I am bad programming level, I can not complete the rest of this plug-in.
Why is this plug-in has not submitted to the CB's contrib in?

danselmi

First: cscope.exe must be in your path (I used cscope binary from http://code.google.com/p/cscope-win32/).
Second: try to add the line
while(m_pProcess->ReadProcessOutput());
just after if ( !m_pProcess )
        return;

in OnCscopeReturned(...) in CscopePlugin.cpp
spell checker plugin: [url="http://developer.berlios.de/projects/spellchecker/"]http://developer.berlios.de/projects/spellchecker/[/url]
nassi shneiderman plugin: [url="http://developer.berlios.de/projects/nassiplugin"]http://developer.berlios.de/projects/nassiplugin[/url]

Loaden

Quote from: danselmi on January 07, 2010, 10:10:32 AM
First: cscope.exe must be in your path (I used cscope binary from http://code.google.com/p/cscope-win32/).
Second: try to add the line
while(m_pProcess->ReadProcessOutput());
just after if ( !m_pProcess )
        return;

in OnCscopeReturned(...) in CscopePlugin.cpp


When i do it, now, Cscope.dll work fine.
Thanks!!

killerbot

fyi : we are currently preparing to add it to the contrib plug-ins. So all of your feedback will be very welcome once it is in.

ONce it is there : linux user : take a good look at the cscope tab in the messages pane. For me the header of the list things (like we have for compiler warnings/erros) seemed to have an issue. It was all tracked to the complete left and as such not even visible what every column says (File Line Scope Text). After manually putting things in place, it was ok.