Debian Codegraph @

llvm/tools/llvm-cxxfilt/Opts.td

raw
1 include "llvm/Option/OptParser.td"
2
3 class F<string letter, string help> : Flag<["-"], letter>, HelpText<help>;
4 class FF<string name, string help> : Flag<["--"], name>, HelpText<help>;
5
6 multiclass BB<string name, string help1, string help2> {
7 def NAME: Flag<["--"], name>, HelpText<help1>;
8 def no_ # NAME: Flag<["--"], "no-" # name>, HelpText<help2>;
9 }
10
11 multiclass Eq<string name, string help> {
12 def NAME #_EQ : Joined<["--"], name #"=">,
13 HelpText<help>;
14 def : Separate<["--"], name>, Alias<!cast<Joined>(NAME #_EQ)>;
15 }
16
17 def help : FF<"help", "Display this help">;
18 def quote : FF<"quote", "Quote demangled names with \" \" if not already quoted">;
19 defm strip_underscore : BB<"strip-underscore", "Strip the leading underscore", "Don't strip the leading underscore">;
20 def types : FF<"types", "Attempt to demangle types as well as symbol names">;
21 def no_params : FF<"no-params", "Skip function parameters and return types">;
22 def version : FF<"version", "Display the version">;
23
24 defm : Eq<"format", "Specify mangling format. Currently ignored because only 'gnu' is supported">;
25 def : F<"s", "Alias for --format">;
26
27 def : F<"_", "Alias for --strip-underscore">, Alias<strip_underscore>;
28 def : F<"h", "Alias for --help">, Alias<help>;
29 def : F<"n", "Alias for --no-strip-underscore">, Alias<no_strip_underscore>;
30 def : F<"p", "Alias for --no-params">, Alias<no_params>;
31 def : F<"t", "Alias for --types">, Alias<types>;