2017-08-02
Cscope Usage

Actually the source insight is the fist choice code viewing tool for me, but it requires license and in Linux the vim is the powerful editor for me. So to better understanding the code, cscope is the best choice for me to read code in vim. Now i used the cscope more and more often.

Generate the cscope meta data

Enter below commands at the top dir of the project, and then cscope.out will be generated:

find . -name “*.h” -o -name “*.c” -o -name “*.cc” -o -name “*.cpp” > cscope.files
cscope -bqR -i cscope.files

More parameters you can refer to cscope -h.

Read More