On 7/7/20 5:50 PM, Hans-Bernhard Bröker wrote:
Which in turn means that there are almost certainly aspects of the way
this codebase expresses function definitions that make them
unrecognizable to the cscope parser. If there are, e.g., any kind of
macros involved in that, they most likely cannot be recognized.
All that text in the "Notices" section of the manual, on the
recognizable pattern for a function definition, is there for a reason...
Thank you. It took me a while, but I figured out the problem. cscope
doesn't like it when the left parenthesis after the function declaration
is on a different line. So this works:
int bla(
int x
)
{
}
but this doesn't:
int bla
(
int x
)
{
}
I can use uncrustify to reformat the C files so that they'll make cscope
happy.
_______________________________________________
Cscope-devel mailing list
Cscope-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cscope-devel