Build systems often use the -D flag to define macros and #define statements at compile time. Sometimes code will reference #defines that aren't declared in any .c or .h file but rather inb the makefile. This feature request is to include -D<symbol>=<value> statements in the cscope symbol database. If I get some time maybe I'll try and create a patch to accomplish, but I have no idea how hard this is which is why I'm submitting the feature request.
Thanks!
IMHO, this request really doesn't make any sense. There's no need for this feature.
cscope will find usages of those definitions just fine. It will correctly find no definitions of those --- because in the source, there are none. So what is it you're trying to achieve? And why is it not trivial to do yourself, without changing cscope, by just putting those -D flags into a special file (say, external_defines.h) that holds their equivalent form as
#define symbol value
?
[Title changed becaue makefiles are not relevant to the issue]
No feedback.