File: rc.7

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