Changeset View
Changeset View
Standalone View
Standalone View
clang/include/clang/Driver/Options.td
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 870 Lines • ▼ Show 20 Lines | |||||
def fbuiltin : Flag<["-"], "fbuiltin">, Group<f_Group>, Flags<[CoreOption]>; | def fbuiltin : Flag<["-"], "fbuiltin">, Group<f_Group>, Flags<[CoreOption]>; | ||||
def fbuiltin_module_map : Flag <["-"], "fbuiltin-module-map">, Group<f_Group>, | def fbuiltin_module_map : Flag <["-"], "fbuiltin-module-map">, Group<f_Group>, | ||||
Flags<[DriverOption]>, HelpText<"Load the clang builtins module map file.">; | Flags<[DriverOption]>, HelpText<"Load the clang builtins module map file.">; | ||||
defm caret_diagnostics : OptOutFFlag<"caret-diagnostics", "", "">; | defm caret_diagnostics : OptOutFFlag<"caret-diagnostics", "", "">; | ||||
def fclang_abi_compat_EQ : Joined<["-"], "fclang-abi-compat=">, Group<f_clang_Group>, | def fclang_abi_compat_EQ : Joined<["-"], "fclang-abi-compat=">, Group<f_clang_Group>, | ||||
Flags<[CC1Option]>, MetaVarName<"<version>">, Values<"<major>.<minor>,latest">, | Flags<[CC1Option]>, MetaVarName<"<version>">, Values<"<major>.<minor>,latest">, | ||||
HelpText<"Attempt to match the ABI of Clang <version>">; | HelpText<"Attempt to match the ABI of Clang <version>">; | ||||
def fclasspath_EQ : Joined<["-"], "fclasspath=">, Group<f_Group>; | def fclasspath_EQ : Joined<["-"], "fclasspath=">, Group<f_Group>; | ||||
defm color_diagnostics : OptInFFlag<"color-diagnostics", "Enable", "Disable", " colors in diagnostics", [CoreOption]>; | defm color_diagnostics : OptInFFlag<"color-diagnostics", "Enable", "Disable", " colors in diagnostics", | ||||
[CoreOption, FlangOption]>; | |||||
CarolineConcatto: Is it possible to also add when using FC1Option? | |||||
I skipped it intentionally. In fc1_main.cpp we use TextDiagnosticBuffer instead of TextDiagnosticPrinter. The former will just print the diagnostics without pretty-formatting them, so this option wouldn't make much sense. We could use TextDiagnosticPrinter in flang-new -fc1 (frontend driver) as we do for flang-new (compiler driver), but at this stage I would prefer to keep the design consistent with clang (i.e. this is the main reason why we use TextDiagnosticBuffer instead of TextDiagnosticPrinter in the frontend driver). Having said all that, your comment makes me realise that I should improve the documentation, thanks! awarzynski: I skipped it intentionally. In fc1_main.cpp we use `TextDiagnosticBuffer` instead of… | |||||
def fdiagnostics_color : Flag<["-"], "fdiagnostics-color">, Group<f_Group>, | def fdiagnostics_color : Flag<["-"], "fdiagnostics-color">, Group<f_Group>, | ||||
Flags<[CoreOption, DriverOption]>; | Flags<[CoreOption, DriverOption]>; | ||||
def fdiagnostics_color_EQ : Joined<["-"], "fdiagnostics-color=">, Group<f_Group>; | def fdiagnostics_color_EQ : Joined<["-"], "fdiagnostics-color=">, Group<f_Group>; | ||||
def fansi_escape_codes : Flag<["-"], "fansi-escape-codes">, Group<f_Group>, | def fansi_escape_codes : Flag<["-"], "fansi-escape-codes">, Group<f_Group>, | ||||
Flags<[CoreOption, CC1Option]>, HelpText<"Use ANSI escape codes for diagnostics">, | Flags<[CoreOption, CC1Option]>, HelpText<"Use ANSI escape codes for diagnostics">, | ||||
MarshallingInfoFlag<"DiagnosticOpts->UseANSIEscapeCodes", "false">; | MarshallingInfoFlag<"DiagnosticOpts->UseANSIEscapeCodes", "false">; | ||||
def fcomment_block_commands : CommaJoined<["-"], "fcomment-block-commands=">, Group<f_clang_Group>, Flags<[CC1Option]>, | def fcomment_block_commands : CommaJoined<["-"], "fcomment-block-commands=">, Group<f_clang_Group>, Flags<[CC1Option]>, | ||||
HelpText<"Treat each comma separated argument in <arg> as a documentation comment block command">, | HelpText<"Treat each comma separated argument in <arg> as a documentation comment block command">, | ||||
▲ Show 20 Lines • Show All 4,061 Lines • Show Last 20 Lines |
Is it possible to also add when using FC1Option?