Menu

#248 can't find called and calling functions

closed-rejected
nobody
None
5
2012-04-06
2009-11-13
Anonymous
No

I have a file that cscope doesn't like. While its name implies that it is c++, I don't think it uses any c++ features. I'm using the frontend kscope, but I doubt this bug is in kscope.

Create a project using only the attached file. Search for functions called by rs274ngc_open - kscope finds none. Search for functions calling rs274ngc_open - kscope finds convert_axis_offsets on line 11598 (it isn't there)! This might be due to the function-like macros used.

cscope version 15.7a
kscope version 1.9.4

Discussion

  • Anonymous

    Anonymous - 2009-11-13

    Gah! I hit enter by mistake while editing, and this got submitted prematurely. I tried again using only cscope, with the macros commented out, and got the same behavior. The file is at http://rs274ngc.googlecode.com/svn/trunk/rs274ngc_pre.cc

     
  • Hans-Bernhard Broeker

    • status: open --> closed-rejected
     
  • Hans-Bernhard Broeker

    The problem is actually with all those preprocessor statements in the middle of function definitions' argument lists. There's no way cscope can recognize a construct like that as a proper function definition, and it even says so in the manual.

     

Log in to post a comment.

MongoDB Logo MongoDB