There is a limitation of 1 line per cscope entry, e.g.
type func(type param1, type param2,
type param3, type param4)
will give
type func(type param1, type param2,
cscope entry.
I need cscope to output all parameters in function definitions and calls.
I am not sure this is achievable.
However, as a workaround you could use
grep
, which is more "flexible" and parse the output of:grep -Ri -A 2 "type func" .
This would print the lines that contains
"type func"
and with-A 2
the 2 following lines.You can also use regex to get the output until the closing
)
of function declaration.