Skip to content

Instantly share code, notes, and snippets.

@nouredd2
Created October 24, 2019 17:14
Show Gist options
  • Save nouredd2/cac4a1d51efc66c5ecbdf1a265c03485 to your computer and use it in GitHub Desktop.
Save nouredd2/cac4a1d51efc66c5ecbdf1a265c03485 to your computer and use it in GitHub Desktop.
Cscope configuration commands

To filter out all of the unrelated files, we can generate cscope.files using find as follows

find ./src ./include -type f \( -name "*.cpp" -o -name "*.h" -o -name "*.c" \) -print > cscope.files

This will search for all .cpp, .h, and .c files in the src/ directory and dump them into a cscope.files files.

Next to gerenate the cscope database and referesh it, use

cscope -C -b -q -k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment