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
0
votes
1 answer
How to cancel the jump function of cscope?
When I installed the cscope and the ctags, they share the same ctrl+] command, how can I cancel the jump fuction of cscope, retain only one of them?

zhengk
- 7
- 6
0
votes
1 answer
Parsing C++ code - CSCope
I'm analyzing some large C++ projects. The only functionality I really need is finding function calls.
For this I'm using cscope right now, but I discovered one big problem - it seems, that cscope is not able to find methods, e.g.…

Eenoku
- 2,741
- 4
- 32
- 64
0
votes
1 answer
Use CScope to find function calls (NOT definitions) (C/C++)
I need to find function calls in my C and C++ codes. When I was looking for some suitable software, I found CScope. It looks pretty well, the only problem is, that I can't find a way how to find just function calls with it.
0 Find this C symbol:
1…

Eenoku
- 2,741
- 4
- 32
- 64
0
votes
1 answer
How to run cscope from any directory?
I set up cscope as explained in this tutorial. I do not want to regenerate my database on every invocation of cscope and hence I start it cscope -d. But the problem is, I need to run this command from the directory where my DB, cscope.out resides. I…

Pavan Manjunath
- 27,404
- 12
- 99
- 125
0
votes
1 answer
Synergy between ctags and cscope
I've used both cscope and ctags to collectively help browse the C code previously.
Now with C++ code, I'm trying to use them to aid in code browsing. This is how the cscope and ctags DBs have been built:
$ find . -name '*.cc' -o -name '*.h' >…

Maddy
- 1,319
- 3
- 22
- 37
0
votes
2 answers
how to jump to next matching result which show in "Location list" more efficiently,when using cscope in VIM?
how to jump to next matching result which show in "Location list" more efficiently,when using cscope in VIM?
hi, all:
I have tried these commands to jump to next result,but not work:
| ø | SHIFT |…

jack guan
- 331
- 2
- 12
0
votes
1 answer
E492: Not an editor command: TlistToggle
I am using Vim with cscope, ctags and TagList.
When I open a file with just using vim. I am able to use TagList but when I open a file using cscope, there comes error as:
Error detected while processing /gauravg/.vimrc:
line 9:
E492: Not an…

Gourav Gopal
- 11
- 1
- 3
0
votes
1 answer
problem about cscope index hpp file
i have template class A, the definition is in a.hpp
a.h
template <...>
A
{
void Test();
};
#include a.hpp
if let
cscope -bq a.h
then cscope can find Test declaration, but cannot find definition.
if let
cscope -bq a.h a.hpp
then cscope even…

Raymond
- 561
- 1
- 4
- 14
0
votes
1 answer
Find all functions in a C file
I need a script to get list of all functions from one particular file.
Here is similar question and response for cscope tool.
how can I display all function name from cscope database?
I've tried to do it this way, but I get all functions in a…

Meloun
- 13,601
- 17
- 64
- 93
0
votes
1 answer
Indexing string literals for c++ project
I have a huge c++ project and I find myself rgrep-ing for patterns that I know are in string literals. Is there a way to get clang or xtags or cscope or whatever to build a file with a mapping of each string literal in the project to the file and…

fakedrake
- 6,528
- 8
- 41
- 64
0
votes
0 answers
Why don't the cscope show index and line number on the vim?
My OS version is MAC OS X 10.10, installed with vim(7.3) and cscope(15.8a).
But it can't show index and line number properly:
the screenshot is here
The configuration about the cscope in the ~/.vimrc is as follows:
if has("cscope")
set…

choes
- 141
- 1
- 1
- 11
0
votes
0 answers
cscope doesn't show results in quickfix window
my cscope_maps.vim is
if has("cscope")
""""""""""""" Standard cscope/vim boilerplate
" use both cscope and ctag for 'ctrl-]', ':ta', and 'vim -t'
set cscopetag
" check cscope for definition of a symbol before checking ctags: set to 1
" if you…

柚子youthy
- 113
- 8
0
votes
2 answers
Rebuild cscope in emacs
I have cscope built-in in emacs.
When ever I change the code using emacs. The code change causes cscope to not behave the way I want it to.
eg.
Due to code change If I want to jump to the function definition. cscope does not take me to the…

Deepak
- 373
- 1
- 2
- 7
0
votes
1 answer
print absolut path of symbolic links for Cscope
Since cscope won't follow (relative) symbolic links I need a technic to
collect the absolut paths behind the (relative) symbolic links.
Example:
Wehen I'll find all the c files within a directory I use the find command like…

rzdev
- 3
- 2
0
votes
1 answer
Cannot go to the line of the reference
I recently installed cscope Vim plugin to make it easier to jump through code, but the main functionality - go to line, does not work.
I have F2 key mapped to "Find all references". When I select a function call for example, and press F2, I get the…

omegasbk
- 826
- 1
- 10
- 24