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

mariocup

  • Guest
Re: Please add new plugins for Cscope, thanks!
« Reply #15 on: July 10, 2010, 01:07:06 am »
Hi,

I installed Code::Blocks SVN 6386. It is the first time I am testing Cscope within Code::Blocks. The output in
Cscope could be improved. I would prefer the same behaviour like the Thread Search plugin, this means:
- Delete or keep previous search results
- Add a preview of source code when selecting an item
- Use optional a list view of results like Thread Search:
+ filename1.c (absolute path)
linenumber: Text : <Source>
+ filename2.c (absolute path)
linenumber: Text : <Source>

If we would add the : <Source> within Thread Search the output would be perfect also for Cscope.

Any feedback is welcome :-)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5913
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Please add new plugins for Cscope, thanks!
« Reply #16 on: July 20, 2010, 04:04:47 pm »
Hi,

I installed Code::Blocks SVN 6386. It is the first time I am testing Cscope within Code::Blocks. The output in
Cscope could be improved. I would prefer the same behaviour like the Thread Search plugin, this means:
- Delete or keep previous search results
- Add a preview of source code when selecting an item
- Use optional a list view of results like Thread Search:
+ filename1.c (absolute path)
linenumber: Text : <Source>
+ filename2.c (absolute path)
linenumber: Text : <Source>

If we would add the : <Source> within Thread Search the output would be perfect also for Cscope.

Any feedback is welcome :-)

nice idea, The framework of "thread search" window is quite good, a splitter window, one sub-window is showing the source code, the other sub-windows showing all the search results.

I even thought to implement some "rename of variables" (re-factor feature of CC).

About the cscope plugin, I have read some piece of cscope's source, it seems they use the Yacc&Lex grammar to do the code analysis, I guess it is not fully support the much C++ feature.  :(
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.