Hi,
I have a collection of C source files (.c and .h). I need to find
all identifiers which are used in that collection but not defined
within the collection. The identifiers include pre-processor macros/
defines, structure types, and variable/function names. Thus, if a file
uses a symbol A but no file in the collection defines A, then A should
appear in the list.
ctags comes close, but its -x option produces only a list of defined
symbols. The undefined symbols don't appear in the cross-reference.
cscope conveniently builds a database of all identifiers. Is there any
way to coax cscope to print out the undefined symbols?
Thanks very much!
Regards,
Sundar.