Scroll to navigation

RC(7) User Commands RC(7)

NAME

rc - manual page for rc 2.38.130

SYNOPSIS

rc [OPTION]...

DESCRIPTION

rc is the RTags client application.

OPTIONS

Be more verbose.
Print current version.
Verify that the correct protocol version is used.
Be silent.
Display this help.
Use this file (instead of ~/.rcrc).
Don't load any rc files.

Rdm:

Tell server to shut down with optional exit code as argument.
Timeout for connecting to rdm in ms (default 1000).

Project management:

Clear projects.
With arg, select project matching that if unique, otherwise list all projects.
Delete all projects matching regex.
Set or query current job count. (Prefix with l to set low-priority-job-count).

Indexing commands:

Pass compilation arguments to rdm.
Guess compile flags (used with -c).
Load compile_commands.json from directory
Dump suspended files (don't track changes in these files) with no arg. Otherwise toggle suspension for arg.

Query commands:

Follow this location.
Find references matching arg.
Find references matching this location.
List symbol names matching arg.
Find symbols matching arg.
Get cursor info for this location.
Dump status of rdm. Arg can be symbols or symbolNames.
Resend diagnostics for file.
Resend diagnostics for all files.
Get timestamp of the last time indexing completed for the current project.
Check if rtags knows about, and is ready to return information about, this source file.
Check if rtags is currently indexing files in any project or in project matching pattern.
Check if rtags has info about files in this directory.
Preprocess file.
Assemble file.
Reindex all files or all files matching pattern.
Check if reindexing is necessary for all files matching pattern.
Print files matching pattern.
Print path for current project.
Dump source file.
Check includes for source file.
Dump file maps for file.
Generate a test for a given source file.
Receive logs from rdm.
Get fixits for file.
Remove file from project.
Use to check behavior of find-project-root.
Use to check behavior of find-project-root for builds.
Use to generate include statement for symbol.
Dump sources for source file.
Dump dependencies for source file [(includes, included-by, depends-on, depended-on, tree-depends-on, raw)].
Dump dependencies for all source files [(includes, included-by, depends-on, depended-on, tree-depends-on, raw)].
Reload file manager.
Code complete at location: arg is file:line:col.
Only for debugging. Send data to all -G connections.
Dump cached completions.
Dump compilation database for project.
Set active buffers (list of filenames for active buffers in editor).
List active buffers.
Add additional buffers.
Remove buffers.
List spelling for known cursor kinds.
Dump class hierarcy for struct/class at location.
Manipulate debug locations.
Validate database files for current project.
Dump tokens for file. --tokens file.cpp:123-321 for range.
Find functions declared/defined in the current file that are never in the project.

Command flags:

Strip parens in various contexts.
Max lines of output for queries.
Sort output reversed.
Used for --references to indicate that we're using the results to rename symbols.
Pass unsaved file on command line. E.g. --unsaved-file=main.cpp:1200 then write 1200 bytes on stdin.
Log to this file.
Don't print context for locations.
Filter out results not matching with arg.
Filter out results unless argument depends on them.
Filter out results not in the specified range.
Don't exempt system headers from path filters.
Include definitions/declarations/constructors/destructors for references. Used for rename symbol.
Print all matching usr targets for -f. Used for debugging.
Print multiple targets for -f. Sorted by best match.
Output elisp: (list "one" "two" ...).
Output json.
Output json diagnostics with skipped ranges.
Receive async formatted diagnostics from rdm.
Treat various text patterns as regexps (-P, -i, -V, -F).
Match case insensitively
Print files with absolute path.
Use this socket file (default ~/.rdm).
Use this host:port combination (instead of --socket-file).
Max time in ms to wait for job to finish (default no timeout).
Use in combinations with -R or -r to show other implementations of this function.
Use to make --find-file prefer exact matches over partial matches.
Use to make --symbol-info include parent symbols.
Use to make --symbol-info include target symbols.
Use to make --symbol-info include reference symbols.
Use to make --symbol-info include baseclasses' symbols.
Use to make --symbol-info include source code.
Include cursor kind in --find-symbols output.
Include display name in --find-symbols output.
Pass along which file is being edited to give rdm a better chance at picking the right project.
Filter out definitions (unless inline).
Filter out declarations (unless inline).
Only return results matching this kind.
Include name of containing function in output.
Include location of containing function in output.
For sources with multiple builds, use the arg'th.
For --source, only print compilation flags.
For --source, print one compilation flag per line.
For --source, print pwd for compile command on the first line.
For --dump-file, also dump dependencies.
Don't log this request in rdm.
Wait for completion results and print them to stdout.
Wait for diagnostics and print them to stdout.
Output XML
Don't sort references by input position.
Override project root for compile commands.
Print out .rtags-config for argument.
Expand * like wildcards in --list-symbols and --find-symbols.
Don't colorize context.
Wait for reindexing to finish.
Include macros in code completion results.
Give includes in completion results.
Don't wait for synchronous completion if the translation unit has to be created.
Filter out code completion results that don't start with this prefix.
Inform rdm that we're code-completing. Use with --diagnose
Don't produce spell check info in diagnostics.
Include symbols for tokens.
Don't resolve paths using realpath(3).
Dump include path for symbol.
Max search depth. Used for --include-path.

SEE ALSO

rdm(7)

January 2020 rc 2.38.130