Cscope is a code searching application originally written for searching C code bases. Cscope is useful for searching many other code bases as well: C++, Java, Python, etc.
Questions tagged [cscope]
266 questions
2
votes
1 answer
Multiple database handling in cscope
I have the following problem. I have a directory with project, let's assume:
C:\projects\handler
I also have a library that this project uses:
C:\projects\core_library
I use cscope to create the…

Melon
- 604
- 1
- 7
- 30
2
votes
1 answer
Cscope result handling with Quickfix window
I am using cscope with quickfix support to display the result by setting set cscopequickfix=s-,c-,d-,i-,t-,e- ~/.vimrc file
I can move between results with :cnext and :cprevious commands
What I want is to display the result in quickfix window first…

srv
- 433
- 9
- 26
2
votes
4 answers
unable to use cscope multi key stroke via vim editor
I am using VIM 7.0 on RHEL release 5.4, and downloaded cscope plugin from: http://cscope.sourceforge.net/cscope_maps.vim
and copied it to path(one instance at a time): ~/.vim/plugin/cscope_maps.vim & /usr/share/vim/vim70/autoload
and generated…

DragonX
- 371
- 2
- 6
- 18
2
votes
2 answers
jump to cscope definition in an buffer already open
I usually use cscope to browse my code. Whenever I hit C ] the current buffer I am reading changes and the file containing the definition is shown.
Suppose I have already a tab in vim with that file already open: is there anyway to jump from my…

Abruzzo Forte e Gentile
- 14,423
- 28
- 99
- 173
2
votes
1 answer
Index C/C++ code using Emacs
How to index C/C++ code using Emacs?
Is it possible to use Cscope db to browsing C/C++ code in emacs?

sbhal
- 145
- 10
2
votes
1 answer
In cscope how to search for a string with period in it?
In cscope how to search for a string with period in it? for eg. I have a line
.mount = testmount
in my code, but if i try to search for the C symbol or even text string .mount, i get every line that contains the word mount instead. Using backslash…

saketrp
- 2,323
- 3
- 16
- 18
2
votes
1 answer
setting up semantic with cscope
I'm starting to experiment a bit with using emacs as my development envrionment and I am running into a bit of trouble. I wish to use cscope with semantic for a fairly robust way of searching through my code base. However, after installing cscope…

foboi1122
- 1,727
- 4
- 19
- 36
2
votes
2 answers
How can cscope be used through script to find definitions?
Is there any way cscope can be used in script to find global definitions? I am looking for options where I can validate the sizes of structures used while memory allocation. Instead of writing a program to find the definition on my own, I intend to…

ikirankumar
- 115
- 1
- 7
2
votes
1 answer
Windows autoupdate cscope database from GVIM
I work with GVIM and cscope for C on Window 7. But, the cscope database gets soon outdated as and when code is updated. So, I added the following to my gvimrc
nmap :cs k 0 :!cscope -bR :cs a cscope.out
Since, I almost always…

tecMav
- 305
- 1
- 2
- 11
2
votes
1 answer
How to launch gvim.exe from cscope-win32 when run from cmd.exe?
For years now my Windows C tagging/scoping solution has almost worked. I can build the filelist, build the tags (via Exuberant Ctags) for vim/gvim navigation, build cscope.out, and tag around within gvim.exe windows I launch by clicking on C source…

Andrew Cottrell
- 3,312
- 3
- 26
- 41
2
votes
0 answers
Vim + cscope: how to make Ctrl-] to always jump to first result
When I use ctags in vim, CTRL-] always jumps to the first result. In the same code base, with cscope enabled in vim, CTRL-] no longer jumps directly, but instead gives me a selection (like :ts). How can I make it jump to the first result by…

Victor
- 347
- 1
- 6
2
votes
0 answers
cscope failed at "cs add"printing "cs_read_prompt EOF: Interrupted system call"
Environment:
Linux Mint 14 MATE amd64 Desktop (Ubuntu 12.10 like)
cscope 15.7a-3.6 (Ubuntu source)
vim 7.3 (Ubuntu source)
mate-terminal
Description:
When I command "vim xx.c" in mate-terminal, vim invokes cscope executing "cs add…

TudoRex
- 21
- 3
2
votes
2 answers
How to generate cscope.files from CMakeLists.txt
I'm using CMake to build my code. CMakeLists.txt contains the list of all the .C or .CPP files and all the include directories.
How can I implement CMakeLists.txt so that I can have a make option that generates cscope.files for me containing the…

ruben2020
- 1,549
- 14
- 24
2
votes
1 answer
Cscope egrep speedup
I use cscope in vim to search for stuff in a large codebase. I find the "cs f e" option too slow. Anyway tips speed it up. I build my cscope database using cscope -bq

kgunjikar
- 455
- 4
- 17
2
votes
1 answer
cscope not working with shortcuts in .vimrc file
I am trying to add shortcuts to cscope usage by adding the following statements in .vimrc file.
" cscope mappings
if has("cscope")
nmap s :scs find s =expand("")
endif
I sourced the file using :so ~/.vimrc in the vim…

CHID
- 1,625
- 4
- 24
- 43