[flang][driver] Make sure that -### is marked as supported (NFC)

`-###` has always been supported in the new flang driver. This patch
merely makes sure that it's included when printing the help screen (i.e.
`flang-new -help`).
This commit is contained in:
Andrzej Warzynski 2020-11-11 08:45:54 +00:00
parent 37f4ccb275
commit fdbc7e505c
3 changed files with 3 additions and 1 deletions

View File

@ -398,7 +398,7 @@ def ccc_ : Joined<["-"], "ccc-">, Group<internal_Group>, Flags<[Unsupported]>;
// Standard Options // Standard Options
def _HASH_HASH_HASH : Flag<["-"], "###">, Flags<[NoXarchOption, CoreOption]>, def _HASH_HASH_HASH : Flag<["-"], "###">, Flags<[NoXarchOption, CoreOption, FlangOption]>,
HelpText<"Print (but do not run) the commands to run for this compilation">; HelpText<"Print (but do not run) the commands to run for this compilation">;
def _DASH_DASH : Option<["--"], "", KIND_REMAINING_ARGS>, def _DASH_DASH : Option<["--"], "", KIND_REMAINING_ARGS>,
Flags<[NoXarchOption, CoreOption]>; Flags<[NoXarchOption, CoreOption]>;

View File

@ -18,6 +18,7 @@
! CHECK:USAGE: flang-new ! CHECK:USAGE: flang-new
! CHECK-EMPTY: ! CHECK-EMPTY:
! CHECK-NEXT:OPTIONS: ! CHECK-NEXT:OPTIONS:
! CHECK-NEXT: -### Print (but do not run) the commands to run for this compilation
! CHECK-NEXT: -E Only run the preprocessor ! CHECK-NEXT: -E Only run the preprocessor
! CHECK-NEXT: -fcolor-diagnostics Enable colors in diagnostics ! CHECK-NEXT: -fcolor-diagnostics Enable colors in diagnostics
! CHECK-NEXT: -fno-color-diagnostics Disable colors in diagnostics ! CHECK-NEXT: -fno-color-diagnostics Disable colors in diagnostics

View File

@ -18,6 +18,7 @@
! HELP:USAGE: flang-new ! HELP:USAGE: flang-new
! HELP-EMPTY: ! HELP-EMPTY:
! HELP-NEXT:OPTIONS: ! HELP-NEXT:OPTIONS:
! HELP-NEXT: -### Print (but do not run) the commands to run for this compilation
! HELP-NEXT: -E Only run the preprocessor ! HELP-NEXT: -E Only run the preprocessor
! HELP-NEXT: -fcolor-diagnostics Enable colors in diagnostics ! HELP-NEXT: -fcolor-diagnostics Enable colors in diagnostics
! HELP-NEXT: -fno-color-diagnostics Disable colors in diagnostics ! HELP-NEXT: -fno-color-diagnostics Disable colors in diagnostics