Using the new "Find assignments to this symbol" I notice that there are several cases where, for example "p == NULL" gets detected as an assignment to p. (create a cscope.files with all of the .c and .h files in the cscope src directory, and run cscope there, and find assignments to p, and the first result shows the issue).
I was confused, because the code seemed to be checking for == and not including that as a valid match. After using a debugger for a while, I found that the issue occured when the second = was part of a digraph. I am attaching a patch that seems to fix the issue, but it is ugly. It could probably be made better by using a macro or function.
Log in to post a comment.