I am working on a project which requires the understanding of llvm compiler source-code. To browse source code of llvm, I tried to use cscope with following command in the root directory of the source:
cscope -R *
But it doesn't work. As there are mainly .cpp and .h files but some .c files are also there. So now I don't have a clue how to make cscope work? Can someone please help?
find | grep
is a bit wasteful. You could perfectly well useegrep
orgrep -E
with a singlefind
:find . -type f -print | grep -E '\.(c(pp)?|h)$' > cscope.files
. – Unreliable