I am using rtags to build an identifier cross-reference for literate C code. Output from rc -N -F --display-name --containing function --cursor-kind is positional, and the -N is necessary lest tabs in the source code confuse my parser.
The solution I'd like
I'd like the --json option to work with -F.
Alternatives I've considered
I'd also be delighted to have rc dump everything that the server knows about symbols, as a JSON object. That would also eliminate the tiresome necessity to query each symbol individually with its own -R option (to find uses).
Other reasonable options would be to escape tab characters that appear in source code.
Additional context
For what it's worth, I am querying every symbol in a program.
Related problem
I am using rtags to build an identifier cross-reference for literate C code. Output from
rc -N -F --display-name --containing function --cursor-kind
is positional, and the-N
is necessary lest tabs in the source code confuse my parser.The solution I'd like
I'd like the
--json
option to work with-F
.Alternatives I've considered
I'd also be delighted to have
rc
dump everything that the server knows about symbols, as a JSON object. That would also eliminate the tiresome necessity to query each symbol individually with its own-R
option (to find uses).Other reasonable options would be to escape tab characters that appear in source code.
Additional context
For what it's worth, I am querying every symbol in a program.