llvm-project/flang/lib/Frontend
Andrzej Warzynski 523d7bc6f4 [flang][driver] Add `-fdebug-dump-parsing-log`
This patch adds `-fdebug-dump-parsing-log` in the new driver. This option is
semantically identical to `-fdebug-instrumented-parse` in `f18` (the
former is added as an alias in `f18`).

As dumping the parsing log makes only sense for instrumented parses, we
set Fortran::parser::Options::instrumentedParse to `True` when
`-fdebug-dump-parsing-log` is used. This is consistent with `f18`.

To facilitate tweaking the configuration of the frontend based on the
action being requested, `setUpFrontendBasedOnAction` is introduced in
CompilerInvocation.cpp.

Differential Revision: https://reviews.llvm.org/D97457
2021-03-10 12:09:16 +00: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 extension options and -finput-charset 2021-02-16 11:27:06 +00:00
CompilerInvocation.cpp [flang][driver] Add `-fdebug-dump-parsing-log` 2021-03-10 12:09:16 +00:00
FrontendAction.cpp [flang][driver] Add PrescanAction frontend action (nfc) 2021-02-04 14:23:33 +00:00
FrontendActions.cpp [flang][driver] Add `-fdebug-dump-parsing-log` 2021-03-10 12:09:16 +00:00
FrontendOptions.cpp [flang][driver] Add options for unparsing 2021-02-16 09:32:51 +00:00
TextDiagnostic.cpp
TextDiagnosticBuffer.cpp
TextDiagnosticPrinter.cpp