David Blume's GitList
Repositories
testcode.git
Code
Commits
Branches
Tags
Search
Tree:
de73d20
Branches
Tags
c++11
main
start
testcode.git
makecsope.sh
Make ctags and cscope more compatible.
David Blume
commited
de73d20
at 2017-12-30 13:35:25
makecsope.sh
Blame
History
Raw
#/bin/bash set -eu -o pipefail # See: https://sipb.mit.edu/doc/safe-shell/ find $PWD -regex ".*\.[hcHC]\(pp\|xx\)?" | \ grep -v " \|/generated/" > cscope.files # -b = Build database. # -q = Enable fast symbol lookup via an inverted index. # -R = (Instead of using cscope.files) Recurse subdirectories. # -k = Kernel mode. (Ignore /usr/include) cscope -q -b -k echo "You can now use \`cscope -d\` # Run cscope without updating cross reference"