RC(7)

πŸ“¦
version 2.38 Β· 3 versions
, in opensuse-leap 16.0

πŸŽ€ NAME πŸŽ€

rc β€” manual page for rc 2.38.130

okay so before we even get into it: this whole thing lives in the User Commands corner of the manual, and it's literally the glow-up guide to rc, the RTags client app πŸ’…


✨ SYNOPSIS ✨

rc [OPTION]...

πŸ¦‹ DESCRIPTION πŸ¦‹

rc is the RTags client application. that's it, that's the whole vibe β€” it's the client, rdm is the server, they're a duo, it's giving main character energy 🫢


πŸ’– OPTIONS πŸ’–

🌸 the basics 🌸

  • --verbose, -v β€” be more verbose. say more words. spill the tea 🍡
  • --version β€” print the current version.
  • --verify-version, -t [arg] β€” verify that the correct protocol version is being used.
  • --silent, -Q β€” be silent. not a peep πŸ™ˆ
  • --help, -h β€” display this help.
  • --config [arg] β€” use this file instead of ~/.rcrc.
  • --no-rc β€” don't load any rc files at all. zero. none. bye πŸ‘‹

πŸ‘‘ Rdm πŸ‘‘

  • --quit-rdm, -q β€” tell the server to shut down, with an optional exit code as the argument.
  • --connect-timeout [arg] β€” timeout for connecting to rdm, in ms (default 1000).

🧚 Project management 🧚

  • --clear, -C β€” clear projects.
  • --project, -w [optional] β€” with an arg, select the project matching it if it's unique; otherwise list all projects.
  • --delete-project, -W [arg] β€” delete all projects matching regex.
  • --job-count, -j [optional] β€” set or query the current job count. (prefix with l to set low-priority-job-count 🫑)

πŸ”₯ Indexing commands πŸ”₯

  • --compile, -c [optional] β€” pass compilation arguments to rdm.
  • --guess-flags β€” guess compile flags (used with -c).
  • --load-compile-commands, -J [optional] β€” load compile_commands.json from directory.
  • --suspend, -X [optional] β€” dump suspended files (don't track changes in these files) with no arg. otherwise, toggle suspension for arg.

🌈 Query commands 🌈

  • --follow-location, -f [arg] β€” follow this location.
  • --references-name, -R [arg] β€” find references matching arg.
  • --references, -r [arg] β€” find references matching this location.
  • --list-symbols, -S [optional] β€” list symbol names matching arg.
  • --find-symbols, -F [optional] β€” find symbols matching arg.
  • --symbol-info, -U [arg] β€” get cursor info for this location.
  • --status, -s [optional] β€” dump status of rdm. arg can be symbols or symbolNames.
  • --diagnose [arg] β€” resend diagnostics for file.
  • --diagnose-all β€” resend diagnostics for all files.
  • --last-indexed β€” get timestamp of the last time indexing completed for the current project. ⏰
  • --is-indexed, -T [arg] β€” check if rtags knows about, and is ready to return information about, this source file.
  • --is-indexing [optional] β€” check if rtags is currently indexing files in any project or in the project matching pattern.
  • --has-filemanager [optional] β€” check if rtags has info about files in this directory.
  • --preprocess, -E [arg] β€” preprocess file.
  • --asm [arg] β€” assemble file.
  • --reindex, -V [optional] β€” reindex all files, or all files matching pattern.
  • --check-reindex, -x [optional] β€” check if reindexing is necessary for all files matching pattern.
  • --path, -P [optional] β€” print files matching pattern.
  • --current-project β€” print path for current project.
  • --dump-file, -d [arg] β€” dump source file.
  • --check-includes [arg] β€” check includes for source file.
  • --dump-file-maps [arg] β€” dump file maps for file.
  • --generate-test [arg] β€” generate a test for a given source file.
  • --rdm-log, -g β€” receive logs from rdm.
  • --fixits [arg] β€” get fixits for file.
  • --remove, -D [arg] β€” remove file from project.
  • --find-project-root [arg] β€” use to check behavior of find-project-root.
  • --find-project-build-root [arg] β€” use to check behavior of find-project-root for builds.
  • --include-file [arg] β€” use to generate include statement for symbol.
  • --sources [optional] β€” dump sources for source file.
  • --dependencies [arg] β€” dump dependencies for source file [(includes, included-by, depends-on, depended-on, tree-depends-on, raw)].
  • --all-dependencies β€” dump dependencies for all source files [(includes, included-by, depends-on, depended-on, tree-depends-on, raw)].
  • --reload-file-manager, -B β€” reload file manager.
  • --code-complete-at, -l [arg] β€” code complete at location: arg is file:line:col.
  • --send-diagnostics [arg] β€” only for debugging. send data to all -G connections.
  • --dump-completions β€” dump cached completions.
  • --dump-compile-commands β€” dump compilation database for project.
  • --set-buffers [optional] β€” set active buffers (list of filenames for active buffers in editor).
  • --list-buffers β€” list active buffers.
  • --add-buffers [arg] β€” add additional buffers.
  • --remove-buffers [arg] β€” remove buffers.
  • --list-cursor-kinds β€” list spelling for known cursor kinds.
  • --class-hierarchy [arg] β€” dump class hierarcy for struct/class at location. (their spelling, not mine, iykyk πŸ’€)
  • --debug-locations [optional] β€” manipulate debug locations.
  • --validate β€” validate database files for current project.
  • --tokens [arg] β€” dump tokens for file. --tokens file.cpp:123-321 for a range.
  • --find-dead-functions [optional] β€” find functions declared/defined in the current file that are never in the project. rip to those functions 😭

🌟 Command flags 🌟

  • --strip-paren, -p β€” strip parens in various contexts.
  • --max, -M [arg] β€” max lines of output for queries.
  • --reverse-sort, -O β€” sort output reversed.
  • --rename β€” used for --references to indicate that we're using the results to rename symbols.
  • --unsaved-file [arg] β€” pass unsaved file on command line. e.g. --unsaved-file=main.cpp:1200 then write 1200 bytes on stdin.
  • --log-file, -L [arg] β€” log to this file.
  • --no-context, -N β€” don't print context for locations.
  • --path-filter, -i [arg] β€” filter out results not matching with arg.
  • --dependency-filter [arg] β€” filter out results unless argument depends on them.
  • --range-filter [arg] β€” filter out results not in the specified range.
  • --filter-system-headers, -H β€” don't exempt system headers from path filters.
  • --all-references, -e β€” include definitions/declarations/constructors/destructors for references. used for rename symbol.
  • --target-usrs β€” print all matching usr targets for -f. used for debugging.
  • --all-targets β€” print multiple targets for -f. sorted by best match.
  • --elisp, -Y β€” output elisp: (list "one" "two" ...).
  • --json β€” output json.
  • --json-diagnostics-include-skipped β€” output json diagnostics with skipped ranges.
  • --diagnostics, -m β€” receive async formatted diagnostics from rdm.
  • --match-regexp, -Z β€” treat various text patterns as regexps (-P, -i, -V, -F).
  • --match-icase, -I β€” match case insensitively.
  • --absolute-path, -K β€” print files with absolute path.
  • --socket-file, -n [arg] β€” use this socket file (default ~/.rdm).
  • --socket-address [arg] β€” use this host:port combination (instead of --socket-file).
  • --timeout, -y [arg] β€” max time in ms to wait for job to finish (default no timeout).
  • --find-virtuals, -k β€” use in combination with -R or -r to show other implementations of this function.
  • --find-file-prefer-exact, -A β€” use to make --find-file prefer exact matches over partial matches.
  • --symbol-info-include-parents β€” use to make --symbol-info include parent symbols.
  • --symbol-info-include-targets β€” use to make --symbol-info include target symbols.
  • --symbol-info-include-references β€” use to make --symbol-info include reference symbols.
  • --symbol-info-include-base-classes β€” use to make --symbol-info include baseclasses' symbols.
  • --symbol-info-include-source-code β€” use to make --symbol-info include source code.
  • --cursor-kind β€” include cursor kind in --find-symbols output.
  • --display-name β€” include display name in --find-symbols output.
  • --current-file [arg] β€” pass along which file is being edited, to give rdm a better chance at picking the right project.
  • --declaration-only, -G β€” filter out definitions (unless inline).
  • --definition-only β€” filter out declarations (unless inline).
  • --kind-filter [arg] β€” only return results matching this kind.
  • --containing-function, -o β€” include name of containing function in output.
  • --containing-function-location β€” include location of containing function in output.
  • --build-index [arg] β€” for sources with multiple builds, use the arg'th.
  • --compilation-flags-only β€” for --source, only print compilation flags.
  • --compilation-flags-split-line β€” for --source, print one compilation flag per line.
  • --compilation-flags-pwd β€” for --source, print pwd for compile command on the first line.
  • --dump-include-headers β€” for --dump-file, also dump dependencies.
  • --silent-query β€” don't log this request in rdm.
  • --synchronous-completions β€” wait for completion results and print them to stdout.
  • --synchronous-diagnostics β€” wait for diagnostics and print them to stdout.
  • --xml β€” output XML.
  • --no-sort-references-by-input β€” don't sort references by input position.
  • --project-root [arg] β€” override project root for compile commands.
  • --rtags-config [arg] β€” print out .rtags-config for argument.
  • --wildcard-symbol-names, -a β€” expand * like wildcards in --list-symbols and --find-symbols.
  • --no-color, -z β€” don't colorize context. (sad, but valid πŸ₯²)
  • --wait β€” wait for reindexing to finish.
  • --code-complete-include-macros β€” include macros in code completion results.
  • --code-complete-includes β€” give includes in completion results.
  • --code-complete-no-wait β€” don't wait for synchronous completion if the translation unit has to be created.
  • --code-complete-prefix [arg] β€” filter out code completion results that don't start with this prefix.
  • --code-completion-enabled, -b β€” inform rdm that we're code-completing. use with --diagnose.
  • --no-spell-checking β€” don't produce spell check info in diagnostics.
  • --tokens-include-symbols β€” include symbols for tokens.
  • --no-realpath β€” don't resolve paths using realpath(3).
  • --include-path [arg] β€” dump include path for symbol.
  • --max-depth [arg] β€” max search depth. used for --include-path.

⭐ SEE ALSO ⭐

  • rdm(7) β€” the other half of the duo, go say hi 🫢

and that's the page, bestie πŸ’œ this was rc 2.38.130, dated January 2020, filed under RC(7) β€” slay, go index something πŸŽ€βœ¨

πŸ“¦ where this page comes from