1 include "llvm/Option/OptParser.td"
3 class F<string name, string help> : Flag<["-"], name>, HelpText<help>;
4 class Arg<string name, string help> : Separate<["-"], name>, HelpText<help>;
6 multiclass Eq<string name, string help> {
7 def NAME #_EQ : Joined<["-", "--"], name #"=">, HelpText<help>;
8 def : Separate<["-", "--"], name>, Alias<!cast<Joined>(NAME #_EQ)>;
11 def help : Flag<["--"], "help">, HelpText<"Display this help">;
12 def version : Flag<["--"], "version">, HelpText<"Display the version">;
14 def o : Arg<"o", "Destination of the primary output">;
16 defm mode : Eq<"mode", "The preprocessing mode used to compute the dependencies">;
18 defm format : Eq<"format", "The output format for the dependencies">;
20 defm module_files_dir : Eq<"module-files-dir",
21 "The build directory for modules. Defaults to the value of '-fmodules-cache-path=' from command lines for implicit modules">;
23 def optimize_args_EQ : CommaJoined<["-", "--"], "optimize-args=">, HelpText<"Which command-line arguments of modules to optimize">;
24 def eager_load_pcm : F<"eager-load-pcm", "Load PCM files eagerly (instead of lazily on import)">;
26 def j : Arg<"j", "Number of worker threads to use (default: use all concurrent threads)">;
28 defm compilation_database : Eq<"compilation-database", "Compilation database">;
29 defm module_name : Eq<"module-name", "the module of which the dependencies are to be computed">;
30 defm dependency_target : Eq<"dependency-target", "The names of dependency targets for the dependency file">;
32 def deprecated_driver_command : F<"deprecated-driver-command", "use a single driver command to build the tu (deprecated)">;
34 defm resource_dir_recipe : Eq<"resource-dir-recipe", "How to produce missing '-resource-dir' argument">;
36 def print_timing : F<"print-timing", "Print timing information">;
38 def verbose : F<"v", "Use verbose output">;
40 def round_trip_args : F<"round-trip-args", "verify that command-line arguments are canonical by parsing and re-serializing">;
42 def DASH_DASH : Option<["--"], "", KIND_REMAINING_ARGS>;