Lines Matching +full:reference +full:- +full:select

1 //===-- options.cpp - Command line options for llvm-debuginfo-analyzer----===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This handles the command line options for llvm-debuginfo-analyzer.
11 //===----------------------------------------------------------------------===//
42 //===----------------------------------------------------------------------===//
44 //===----------------------------------------------------------------------===//
49 //===----------------------------------------------------------------------===//
50 // '--attribute' options
51 //===----------------------------------------------------------------------===//
57 // --attribute=<value>[,<value>,...]
113 clEnumValN(LVAttributeKind::Reference, "reference",
129 //===----------------------------------------------------------------------===//
130 // '--compare' options
131 //===----------------------------------------------------------------------===//
136 // --compare-context
138 CompareContext("compare-context", cl::cat(CompareCategory),
143 // --compare=<value>[,<value>,...]
153 //===----------------------------------------------------------------------===//
154 // '--output' options
155 //===----------------------------------------------------------------------===//
160 // --output-file=<filename>
162 cmdline::OutputFilename("output-file", cl::cat(OutputCategory),
165 cl::init("-"));
167 // --output-folder=<path>
169 OutputFolder("output-folder", cl::cat(OutputCategory),
174 // --output-level=<level>
176 OutputLevel("output-level", cl::cat(OutputCategory),
179 cl::location(ReaderOptions.Output.Level), cl::init(-1U));
181 // --ouput=<value>[,<value>,...]
193 // --output-sort
195 "output-sort", cl::cat(OutputCategory),
204 //===----------------------------------------------------------------------===//
205 // '--print' options
206 //===----------------------------------------------------------------------===//
211 // --print=<value>[,<value>,...]
231 "Types (Pointer, Reference, etc.)."),
235 //===----------------------------------------------------------------------===//
236 // '--report' options
237 //===----------------------------------------------------------------------===//
242 // --report=<value>[,<value>,...]
245 cl::desc("Reports layout used for print, compare and select."), cl::Hidden,
260 //===----------------------------------------------------------------------===//
261 // '--select' options
262 //===----------------------------------------------------------------------===//
264 cmdline::SelectCategory("Select Options",
267 // --select-nocase
269 SelectIgnoreCase("select-nocase", cl::cat(SelectCategory),
272 cl::location(ReaderOptions.Select.IgnoreCase),
275 // --select-regex
277 "select-regex", cl::cat(SelectCategory),
280 cl::Hidden, cl::ZeroOrMore, cl::location(ReaderOptions.Select.UseRegex),
283 // --select=<pattern>
285 "select", cl::cat(SelectCategory),
289 // --select-offsets=<value>[,<value>,...]
290 OffsetOptionList cmdline::SelectOffsets("select-offsets",
296 // --select-elements=<value>[,<value>,...]
298 "select-elements", cl::cat(SelectCategory),
308 // --select-lines=<value>[,<value>,...]
310 "select-lines", cl::cat(SelectCategory),
331 // --select-scopes=<value>[,<value>,...]
333 "select-scopes", cl::cat(SelectCategory),
369 // --select-symbols=<value>[,<value>,...]
371 "select-symbols", cl::cat(SelectCategory),
385 // --select-types=<value>[,<value>,...]
387 "select-types", cl::cat(SelectCategory),
402 clEnumValN(LVTypeKind::IsReference, "Reference", "Reference type."),
405 "Rvalue reference."),
420 //===----------------------------------------------------------------------===//
421 // '--warning' options
422 //===----------------------------------------------------------------------===//
427 // --warning=<value>[,<value>,...]
440 //===----------------------------------------------------------------------===//
441 // '--internal' options
442 //===----------------------------------------------------------------------===//
447 // --internal=<value>[,<value>,...]
473 // Handle --select. in propagateOptions()
474 UpdatePattern(SelectPatterns, ReaderOptions.Select.Generic, in propagateOptions()
475 ReaderOptions.Select.IgnoreCase, ReaderOptions.Select.UseRegex); in propagateOptions()
490 UpdateSet(SelectElements, ReaderOptions.Select.Elements); in propagateOptions()
491 UpdateSet(SelectLines, ReaderOptions.Select.Lines); in propagateOptions()
492 UpdateSet(SelectScopes, ReaderOptions.Select.Scopes); in propagateOptions()
493 UpdateSet(SelectSymbols, ReaderOptions.Select.Symbols); in propagateOptions()
494 UpdateSet(SelectTypes, ReaderOptions.Select.Types); in propagateOptions()
495 UpdateSet(SelectOffsets, ReaderOptions.Select.Offsets); in propagateOptions()
498 // Resolve any options dependencies (ie. --print=all should set other in propagateOptions()