Reputation: 11
I have a project with files foo1.h
and foo2.h
, both of which declare a function int foo();
.
The project contains a much bigger set of C files, where some of them include foo1.h
or foo2.h
and use foo()
.
Is there a way to list the references to a symbol using cscope
or similar, given the file where it is defined?
I have tried cscope -d -L -0 foo
, but it lists all references to foo()
, defined in either .h
file.
Is it possible to pass an argument with the definition location of the symbol, so that the result is a list of references to only that symbol?
Upvotes: 1
Views: 71