llvm-project/flang/test/Driver
Andrzej Warzynski dc256a443a [flang][driver] Add support for `-fget-definition`
This patch adds `-fget-definition` to `flang-new`. The semantics of this
option are identical in both drivers. The error message in the
"throwaway" driver is updated so that it matches the one from
`flang-new` (which is auto-generated and cannot be changed easily).

Tests are updated accordingly. A dedicated test for error handling was
added: get-definition.f90 (for the sake of simplicity,
getdefinition01.f90 no longer tests for errors).

The `ParseFrontendArgs` function is updated so that it can return
errors. This change is required in order to report invalid values
following `-fget-definition`.

The actual implementation of `GetDefinitionAction::ExecuteAction()` was
extracted from f18.cpp (i.e. the bit that deals with
`-fget-definition`).

Depends on: https://reviews.llvm.org/D100556

Differential Revision: https://reviews.llvm.org/D100558
2021-04-21 09:31:36 +00:00
..
Inputs [flang][driver] Add -fintrinsic-modules-path option 2021-03-23 12:28:19 -04:00
code-gen.f90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
cpp-nocpp-command-line-macro.f90 [flang][driver] Add support for `-cpp/-nocpp` 2021-04-07 13:01:52 +00:00
cpp-nocpp-predefined-macro.F90 [flang][driver] Add support for `-cpp/-nocpp` 2021-04-07 13:01:52 +00:00
debug-measure-parse-tree.f90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
debug-parsing-log.f90 [flang][driver] Add `-fdebug-dump-parsing-log` 2021-03-10 12:09:16 +00:00
debug-provenance.f90 [flang][driver] Fix `-fdebug-dump-provenance` 2021-04-07 13:15:09 +00:00
driver-error-cc1.c [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
driver-error-cc1.cpp [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
driver-help-hidden.f90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
driver-help.f90 [flang][driver] Add support for `-fget-definition` 2021-04-21 09:31:36 +00:00
driver-version.f90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
dump-parse-tree-no-sema.f90 [flang][driver] Add debug options not requiring semantic checks 2021-04-08 09:44:19 +00:00
escaped-backslash.f90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
fdefault.f90 [flang][driver] Merge test/Driver and test/Flang-Driver directories 2021-03-10 11:38:13 +00:00
fixed-free-detection.f90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
fixed-free-flag.f90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
fixed-line-length.f90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
flarge-sizes.f90 [flang][nfc] Rename some test files 2021-04-08 10:09:00 +00:00
frontend-forwarding.f90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
get-definition.f90 [flang][driver] Add support for `-fget-definition` 2021-04-21 09:31:36 +00:00
help-f18.f90 [flang][driver] Merge test/Driver and test/Flang-Driver directories 2021-03-10 11:38:13 +00:00
implicit-none.f90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
include-header.f90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
input-from-stdin.f90 [flang][driver] Add support for `-cpp/-nocpp` 2021-04-07 13:01:52 +00:00
intrinsic-module-path.f90 [flang][nfc] Rename some test files 2021-04-08 10:09:00 +00:00
macro-def-undef.F90 [flang][driver] Add support for `-cpp/-nocpp` 2021-04-07 13:01:52 +00:00
macro-multiline.F90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
missing-input.f90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
parse-error.f95 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
phases.f90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
predefined-macros-compiler-version.F90 [flang][driver] Add support for `-cpp/-nocpp` 2021-04-07 13:01:52 +00:00
scanning-error.f95 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
std2018-wrong.f90 [flang][nfc] Rename some test files 2021-04-08 10:09:00 +00:00
std2018.f90 [flang][driver] Add options for -std=f2018 2021-03-25 13:03:16 -04:00
syntax-only.f90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
use-module-error.f90 [flang][driver] Merge test/Driver and test/Flang-Driver directories 2021-03-10 11:38:13 +00:00
use-module.f90 [flang][driver] Merge test/Driver and test/Flang-Driver directories 2021-03-10 11:38:13 +00:00
werror-parse.f [flang][nfc] Rename some test files 2021-04-08 10:09:00 +00:00
werror-scan.f [flang][nfc] Rename some test files 2021-04-08 10:09:00 +00:00
werror-sema.f90 [flang][nfc] Rename some test files 2021-04-08 10:09:00 +00:00
werror-wrong.f90 [flang][nfc] Rename some test files 2021-04-08 10:09:00 +00:00
write-module.f90 [flang][driver] Merge test/Driver and test/Flang-Driver directories 2021-03-10 11:38:13 +00:00