1RC(7)                            User Commands                           RC(7)
2
3
4

NAME

6       rc - manual page for rc 2.10.117
7

SYNOPSIS

9       rc [OPTION]...
10

DESCRIPTION

12       rc is the RTags client application.
13

OPTIONS

15       --verbose|-v
16              Be more verbose.
17
18       --version
19              Print current version.
20
21       --verify-version [arg]
22              Verify that the correct protocol version is used.
23
24       --silent|-Q
25              Be silent.
26
27       --help|-h
28              Display this help.
29
30       --config [arg]
31              Use this file (instead of ~/.rcrc).
32
33       --no-rc
34              Don't load any rc files.
35
36   Rdm:
37       --quit-rdm|-q
38              Tell server to shut down with optional exit code as argument.
39
40       --connect-timeout [arg]
41              Timeout for connecting to rdm in ms (default 1000).
42
43   Project management:
44       --clear|-C
45              Clear projects.
46
47       --project|-w [optional]
48              With arg, select project matching that if unique, otherwise list
49              all projects.
50
51       --delete-project|-W [arg]
52              Delete all projects matching regex.
53
54       --job-count|-j [optional]
55              Set or query current job count. (Prefix with l to set low-prior‐
56              ity-job-count).
57
58   Indexing commands:
59       --compile|-c [optional]
60              Pass compilation arguments to rdm.
61
62       --guess-flags
63              Guess compile flags (used with -c).
64
65       --load-compile-commands|-J [optional]
66              Load compile_commands.json from directory
67
68       --suspend|-X [optional]
69              Dump  suspended  files (don't track changes in these files) with
70              no arg. Otherwise toggle suspension for arg.
71
72   Query commands:
73       --follow-location|-f [arg]
74              Follow this location.
75
76       --references-name|-R [arg]
77              Find references matching arg.
78
79       --references|-r [arg]
80              Find references matching this location.
81
82       --list-symbols|-S [optional]
83              List symbol names matching arg.
84
85       --find-symbols|-F [optional]
86              Find symbols matching arg.
87
88       --symbol-info|-U [arg]
89              Get cursor info for this location.
90
91       --status|-s [optional]
92              Dump status of rdm. Arg can be symbols or symbolNames.
93
94       --diagnose [arg]
95              Resend diagnostics for file.
96
97       --diagnose-all
98              Resend diagnostics for all files.
99
100       --is-indexed|-T [arg]
101              Check if rtags knows about, and is ready to  return  information
102              about, this source file.
103
104       --is-indexing
105              Check if rtags is currently indexing files.
106
107       --has-filemanager [optional]
108              Check if rtags has info about files in this directory.
109
110       --preprocess|-E [arg]
111              Preprocess file.
112
113       --reindex|-V [optional]
114              Reindex all files or all files matching pattern.
115
116       --check-reindex|-x [optional]
117              Check if reindexing is necessary for all files matching pattern.
118
119       --path|-P [optional]
120              Print files matching pattern.
121
122       --current-project
123              Print path for current project.
124
125       --dump-file|-d [arg]
126              Dump source file.
127
128       --check-includes [arg]
129              Check includes for source file.
130
131       --dump-file-maps [arg]
132              Dump file maps for file.
133
134       --generate-test [arg]
135              Generate a test for a given source file.
136
137       --rdm-log|-g
138              Receive logs from rdm.
139
140       --fixits [arg]
141              Get fixits for file.
142
143       --remove|-D [arg]
144              Remove file from project.
145
146       --find-project-root [arg]
147              Use to check behavior of find-project-root.
148
149       --find-project-build-root [arg]
150              Use to check behavior of find-project-root for builds.
151
152       --include-file [arg]
153              Use to generate include statement for symbol.
154
155       --sources [optional]
156              Dump sources for source file.
157
158       --dependencies [arg]
159              Dump  dependencies  for  source  file  [(includes,  included-by,
160              depends-on, depended-on, tree-depends-on, raw)].
161
162       --all-dependencies
163              Dump dependencies for all source files [(includes,  included-by,
164              depends-on, depended-on, tree-depends-on, raw)].
165
166       --reload-file-manager|-B
167              Reload file manager.
168
169       --man  Output XML for xmltoman to generate man page for rc :-)
170
171       --code-complete-at|-l [arg]
172              Code complete at location: arg is file:line:col.
173
174       --send-diagnostics [arg]
175              Only for debugging. Send data to all -G connections.
176
177       --dump-completions
178              Dump cached completions.
179
180       --dump-compile-commands
181              Dump compilation database for project.
182
183       --set-buffers [optional]
184              Set active buffers (list of filenames for active buffers in edi‐
185              tor).
186
187       --list-buffers
188              List active buffers.
189
190       --list-cursor-kinds
191              List spelling for known cursor kinds.
192
193       --class-hierarchy [arg]
194              Dump class hierarcy for struct/class at location.
195
196       --debug-locations [optional]
197              Manipulate debug locations.
198
199       --validate
200              Validate database files for current project.
201
202       --tokens [arg]
203              Dump tokens for file. --tokens file.cpp:123-321 for range.
204
205   Command flags:
206       --strip-paren|-p
207              Strip parens in various contexts.
208
209       --max|-M [arg]
210              Max lines of output for queries.
211
212       --reverse-sort|-O
213              Sort output reversed.
214
215       --rename
216              Used for --references to indicate that we're using  the  results
217              to rename symbols.
218
219       --unsaved-file [arg]
220              Pass      unsaved     file     on     command     line.     E.g.
221              --unsaved-file=main.cpp:1200 then write 1200 bytes on stdin.
222
223       --log-file|-L [arg]
224              Log to this file.
225
226       --no-context|-N
227              Don't print context for locations.
228
229       --path-filter|-i [arg]
230              Filter out results not matching with arg.
231
232       --dependency-filter [arg]
233              Filter out results unless argument depends on them.
234
235       --range-filter [arg]
236              Filter out results not in the specified range.
237
238       --filter-system-headers|-H
239              Don't exempt system headers from path filters.
240
241       --all-references|-e
242              Include  definitions/declarations/constructors/destructors   for
243              references. Used for rename symbol.
244
245       --target-usrs
246              Print all matching usr targets for -f. Used for debugging.
247
248       --all-targets
249              Print multiple targets for -f. Sorted by best match.
250
251       --elisp|-Y
252              Output elisp: (list "one" "two" ...).
253
254       --json Output json.
255
256       --diagnostics|-m
257              Receive async formatted diagnostics from rdm.
258
259       --match-regexp|-Z
260              Treat various text patterns as regexps (-P, -i, -V).
261
262       --match-icase|-I
263              Match case insensitively
264
265       --absolute-path|-K
266              Print files with absolute path.
267
268       --socket-file|-n [arg]
269              Use this socket file (default ~/.rdm).
270
271       --socket-address [arg]
272              Use this host:port combination (instead of --socket-file).
273
274       --timeout|-y [arg]
275              Max time in ms to wait for job to finish (default no timeout).
276
277       --find-virtuals|-k
278              Use  in combinations with -R or -r to show other implementations
279              of this function.
280
281       --find-file-prefer-exact|-A
282              Use to  make  --find-file  prefer  exact  matches  over  partial
283              matches.
284
285       --symbol-info-include-parents
286              Use to make --symbol-info include parent symbols.
287
288       --symbol-info-include-targets
289              Use to make --symbol-info include target symbols.
290
291       --symbol-info-include-references
292              Use to make --symbol-info include reference symbols.
293
294       --symbol-info-include-base-classes
295              Use to make --symbol-info include baseclasses' symbols.
296
297       --cursor-kind
298              Include cursor kind in --find-symbols output.
299
300       --display-name
301              Include display name in --find-symbols output.
302
303       --current-file [arg]
304              Pass  along  which  file  is  being  edited to give rdm a better
305              chance at picking the right project.
306
307       --declaration-only|-G
308              Filter out definitions (unless inline).
309
310       --definition-only
311              Filter out declarations (unless inline).
312
313       --kind-filter [arg]
314              Only return results matching this kind.
315
316       --containing-function|-o
317              Include name of containing function in output.
318
319       --containing-function-location
320              Include location of containing function in output.
321
322       --build-index [arg]
323              For sources with multiple builds, use the arg'th.
324
325       --compilation-flags-only
326              For --source, only print compilation flags.
327
328       --compilation-flags-split-line
329              For --source, print one compilation flag per line.
330
331       --compilation-flags-pwd
332              For --source, print pwd for compile command on the first line.
333
334       --dump-include-headers
335              For --dump-file, also dump dependencies.
336
337       --silent-query
338              Don't log this request in rdm.
339
340       --synchronous-completions
341              Wait for completion results and print them to stdout.
342
343       --synchronous-diagnostics
344              Wait for diagnostics and print them to stdout.
345
346       --xml  Output XML
347
348       --no-sort-references-by-input
349              Don't sort references by input position.
350
351       --project-root [arg]
352              Override project root for compile commands.
353
354       --rtags-config [arg]
355              Print out .rtags-config for argument.
356
357       --wildcard-symbol-names|-a
358              Expand * like wildcards in --list-symbols and --find-symbols.
359
360       --no-color|-z
361              Don't colorize context.
362
363       --wait Wait for reindexing to finish.
364
365       --code-complete-include-macros
366              Include macros in code completion results.
367
368       --code-complete-includes
369              Give includes in completion results.
370
371       --code-complete-no-wait
372              Don't wait for synchronous completion if  the  translation  unit
373              has to be created.
374
375       --code-complete-prefix [arg]
376              Filter  out  code  completion results that don't start with this
377              prefix.
378
379       --code-completion-enabled|-b
380              Inform rdm that we're code-completing. Use with --diagnose
381
382       --no-spell-checking
383              Don't produce spell check info in diagnostics.
384
385       --tokens-include-symbols
386              Include symbols for tokens.
387
388       --no-realpath
389              Don't resolve paths using realpath(3).
390

SEE ALSO

392       rdm(7)
393
394
395
396rc 2.10.117                       April 2017                             RC(7)
Impressum