Opts.td 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. include "llvm/Option/OptParser.td"
  2. // All the switches can be preceded by either '/' or '-'.
  3. // These options seem to be important for the tool
  4. // and should be implemented.
  5. def fileout : JoinedOrSeparate<[ "/", "-" ], "FO">,
  6. HelpText<"Change the output file location.">;
  7. def define : Separate<[ "/", "-" ], "D">,
  8. HelpText<"Define a symbol for the C preprocessor.">;
  9. def undef : Separate<[ "/", "-" ], "U">,
  10. HelpText<"Undefine a symbol for the C preprocessor.">;
  11. def lang_id : JoinedOrSeparate<[ "/", "-" ], "L">,
  12. HelpText<"Set the default language identifier.">;
  13. def lang_name : Separate<[ "/", "-" ], "LN">,
  14. HelpText<"Set the default language name.">;
  15. def includepath : Separate<[ "/", "-" ], "I">, HelpText<"Add an include path.">;
  16. def noinclude : Flag<[ "/", "-" ], "X">, HelpText<"Ignore 'include' variable.">;
  17. def add_null : Flag<[ "/", "-" ], "N">,
  18. HelpText<"Null-terminate all strings in the string table.">;
  19. def dupid_nowarn : Flag<[ "/", "-" ], "Y">,
  20. HelpText<"Suppress warnings on duplicate resource IDs.">;
  21. def verbose : Flag<[ "/", "-" ], "V">, HelpText<"Be verbose.">;
  22. def help : Flag<[ "/", "-" ], "?">, HelpText<"Display this help and exit.">;
  23. def h : Flag<[ "/", "-" ], "H">,
  24. Alias<help>,
  25. HelpText<"Display this help and exit.">;
  26. def dry_run : Flag<[ "/", "-" ], "dry-run">,
  27. HelpText<"Don't compile the input; only try to parse it.">;
  28. def codepage : JoinedOrSeparate<[ "/", "-" ], "C">,
  29. HelpText<"Set the codepage used for input strings.">;
  30. // Unused switches (at least for now). These will stay unimplemented
  31. // in an early stage of development and can be ignored. However, we need to
  32. // parse them in order to preserve the compatibility with the original tool.
  33. def nologo : Flag<[ "/", "-" ], "NOLOGO">;
  34. def r : Flag<[ "/", "-" ], "R">;
  35. def sl : Flag<[ "/", "-" ], "SL">;
  36. // (Codepages support.)
  37. def w : Flag<[ "/", "-" ], "W">;
  38. // (Support of MUI and similar.)
  39. def fm : Separate<[ "/", "-" ], "FM">;
  40. def q : Separate<[ "/", "-" ], "Q">;
  41. def g : Flag<[ "/", "-" ], "G">;
  42. def gn : Flag<[ "/", "-" ], "GN">;
  43. def g1 : Flag<[ "/", "-" ], "G1">;
  44. def g2 : Flag<[ "/", "-" ], "G2">;