Author Topic: Please add new plugins for Cscope, thanks!  (Read 22718 times)

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Please add new plugins for Cscope, thanks!
« on: January 06, 2010, 09:48:30 am »
Cccc and CppCheck plug-in is really great!
Please add new plugins for Cscope, thanks!:http://cscope.sourceforge.net/
Thank you, CB development team!
« Last Edit: January 07, 2010, 10:09:20 am by Loaden »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Proposal to increase Cscope plug-ins
« Reply #1 on: January 06, 2010, 10:05:56 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: Proposal to increase Cscope plug-ins
« Reply #2 on: January 06, 2010, 10:28:10 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.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5916
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Proposal to increase Cscope plug-ins
« Reply #3 on: January 06, 2010, 11:52:29 am »
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.
« Last Edit: January 06, 2010, 02:38:38 pm by 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.

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: Proposal to increase Cscope plug-ins
« Reply #4 on: January 06, 2010, 01:40:41 pm »
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.

Offline blueshake

  • Regular
  • ***
  • Posts: 459
Re: Proposal to increase Cscope plug-ins
« Reply #5 on: January 06, 2010, 01:46:16 pm »
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?

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5916
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Proposal to increase Cscope plug-ins
« Reply #6 on: January 06, 2010, 02:24:22 pm »
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.

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: Proposal to increase Cscope plug-ins
« Reply #7 on: January 06, 2010, 03:52:17 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.

Offline danselmi

  • Developer
  • Almost regular
  • *****
  • Posts: 203
Re: Proposal to increase Cscope plug-ins
« Reply #8 on: January 06, 2010, 08:23:34 pm »
only roughly tested!

[attachment deleted by admin]

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: Proposal to increase Cscope plug-ins
« Reply #9 on: January 07, 2010, 02:48:36 am »
only roughly tested!
Oh! Good!! Thank you very much!
I will testting and report it.

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: Proposal to increase Cscope plug-ins
« Reply #10 on: January 07, 2010, 09:51:44 am »
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]

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: Proposal to increase Cscope plug-ins
« Reply #11 on: January 07, 2010, 09:58:46 am »
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?

Offline danselmi

  • Developer
  • Almost regular
  • *****
  • Posts: 203
Re: Proposal to increase Cscope plug-ins
« Reply #12 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
Code
while(m_pProcess->ReadProcessOutput());
just after
Code
if ( !m_pProcess )
        return;
in OnCscopeReturned(...) in CscopePlugin.cpp

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: Proposal to increase Cscope plug-ins
« Reply #13 on: January 07, 2010, 10:39:53 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
Code
while(m_pProcess->ReadProcessOutput());
just after
Code
if ( !m_pProcess )
        return;
in OnCscopeReturned(...) in CscopePlugin.cpp


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

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: Please add new plugins for Cscope, thanks!
« Reply #14 on: June 12, 2010, 03:48:57 pm »
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.