File: Opts.td

package info (click to toggle)
llvm-toolchain-21 1%3A21.1.4-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,236,516 kB
  • sloc: cpp: 7,619,569; ansic: 1,433,956; asm: 1,058,748; python: 252,181; f90: 94,671; objc: 70,753; lisp: 42,813; pascal: 18,401; sh: 8,601; ml: 5,111; perl: 4,720; makefile: 3,585; awk: 3,523; javascript: 2,272; xml: 892; fortran: 770
file content (20 lines) | stat: -rw-r--r-- 1,112 bytes parent folder | download | duplicates (21)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
include "llvm/Option/OptParser.td"

class F<string name, string help> : Flag<["-"], name>, HelpText<help>;
class FF<string name, string help>: Flag<["--"], name>, HelpText<help>;
class S<string name, string meta, string help>: Separate<["-"], name>, HelpText<help>, MetaVarName<meta>;

def help : FF<"help", "Display available options">;
def : F<"h", "Alias for --help">, Alias<help>;
def max_concurrency :
   S<"c", "<ulong>", "Maximum number of files to scan concurrently. "
                     "If 0, use the hardware concurrency.">;
def host_interface : S<"i", "<string>", "Host interface to bind to.">;
def min_interval :
    S<"m", "<number>", "Minimum number of seconds to wait before an on-demand update can be"
                       "triggered by a request for a buildid which is not in the collection.">;
def port : S<"p", "<uint>", "Port to listen on. Set to 0 to bind to any available port.">;
def scan_interval :
    S<"t", "<int>", "Number of seconds to wait between subsequent "
                    "automated scans of the filesystem.">;
def verbose_logging : F<"v", "Enable verbose logging.">;