llvm-project/flang/lib/Frontend
Stuart Ellis e1da3297d2 [flang][driver] Add support for the "-init-only" option
Adding the `-init-only` option and corresponding frontend action to
generate a diagnostic.

`-init-only` vs `-test-io`:
`-init-only` ignores the input (it never calls the prescanner)
`-test-io` is similar to `-init-only`, but does read and print the input
without calling the prescanner.

This patch also adds a Driver test to check this action.

Reviewed By: awarzynski, AMDChirag

Differential Revision: https://reviews.llvm.org/D102849
2021-06-07 15:40:26 +01:00
..
CMakeLists.txt [flang][driver] Add debug measure-parse-tree and pre-fir-tree options 2021-02-19 11:27:54 +00:00
CompilerInstance.cpp [flang][driver] Add support for `-cpp/-nocpp` 2021-04-07 13:01:52 +00:00
CompilerInvocation.cpp [flang][driver] Add support for the "-init-only" option 2021-06-07 15:40:26 +01:00
FrontendAction.cpp [flang][driver] Add support for `-cpp/-nocpp` 2021-04-07 13:01:52 +00:00
FrontendActions.cpp [flang][driver] Add support for the "-init-only" option 2021-06-07 15:40:26 +01:00
FrontendOptions.cpp [flang][driver] Add support for `-cpp/-nocpp` 2021-04-07 13:01:52 +00:00
TextDiagnostic.cpp [flang] Introduce DiagnosticConsumer classes in libflangFrontend 2020-10-05 17:46:44 +01:00
TextDiagnosticBuffer.cpp [flang] Introduce DiagnosticConsumer classes in libflangFrontend 2020-10-05 17:46:44 +01:00
TextDiagnosticPrinter.cpp [flang] Introduce DiagnosticConsumer classes in libflangFrontend 2020-10-05 17:46:44 +01:00