RC(7)
π 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 tordm, in ms (default1000).
π§ 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 withlto setlow-priority-job-countπ«‘)
π₯ Indexing commands π₯
--compile,-c[optional] β pass compilation arguments tordm.--guess-flagsβ guess compile flags (used with-c).--load-compile-commands,-J[optional] β loadcompile_commands.jsonfrom 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 ofrdm. arg can besymbolsorsymbolNames.--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 fromrdm.--fixits[arg] β get fixits for file.--remove,-D[arg] β remove file from project.--find-project-root[arg] β use to check behavior offind-project-root.--find-project-build-root[arg] β use to check behavior offind-project-rootfor 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 isfile:line:col.--send-diagnostics[arg] β only for debugging. send data to all-Gconnections.--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-321for 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--referencesto 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:1200then write1200bytes 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 fromrdm.--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 thishost:portcombination (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-Ror-rto show other implementations of this function.--find-file-prefer-exact,-Aβ use to make--find-fileprefer exact matches over partial matches.--symbol-info-include-parentsβ use to make--symbol-infoinclude parent symbols.--symbol-info-include-targetsβ use to make--symbol-infoinclude target symbols.--symbol-info-include-referencesβ use to make--symbol-infoinclude reference symbols.--symbol-info-include-base-classesβ use to make--symbol-infoinclude baseclasses' symbols.--symbol-info-include-source-codeβ use to make--symbol-infoinclude source code.--cursor-kindβ include cursor kind in--find-symbolsoutput.--display-nameβ include display name in--find-symbolsoutput.--current-file[arg] β pass along which file is being edited, to giverdma 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 inrdm.--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-configfor argument.--wildcard-symbol-names,-aβ expand*like wildcards in--list-symbolsand--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β informrdmthat 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 usingrealpath(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
- opensuse-leap 16.0: rtags 2.38-bp160.1.13 Β· GPL-3.0-or-later
- opensuse-leap 16.0: rtags 2.38-bp160.1.13 Β· GPL-3.0-or-later
- opensuse-leap 16.0: rtags 2.38-bp160.1.13 Β· GPL-3.0-or-later
- opensuse-leap 16.0: rtags 2.38-bp160.1.13 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms