Menu

#35 Support for macro definitions from outside the source

closed
nobody
None
5
2012-05-20
2009-06-29
No

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!

Discussion

  • Hans-Bernhard Broeker

    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]

     
  • Hans-Bernhard Broeker

    • summary: Support for standard makefile macro definitions --> Support for macro definitions from outside the source
     
  • Hans-Bernhard Broeker

    No feedback.

     
  • Hans-Bernhard Broeker

    • status: open --> closed