[all-commits] [llvm/llvm-project] 4f21e6: [flang][nfc] Tweak the FrontendAction class
Andrzej WarzyĆski via All-commits
all-commits at lists.llvm.org
Tue Aug 17 00:53:13 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4f21e6aeddc2dbe4ae22aba5b97cae0c50c961f6
https://github.com/llvm/llvm-project/commit/4f21e6aeddc2dbe4ae22aba5b97cae0c50c961f6
Author: Andrzej Warzynski <andrzej.warzynski at arm.com>
Date: 2021-08-17 (Tue, 17 Aug 2021)
Changed paths:
M flang/include/flang/Frontend/FrontendAction.h
M flang/include/flang/Frontend/FrontendActions.h
M flang/lib/Frontend/FrontendAction.cpp
M flang/lib/Frontend/FrontendActions.cpp
Log Message:
-----------
[flang][nfc] Tweak the FrontendAction class
This patch refactors the `FrontendAction` class. It merely moves code
around so that re-using it is easier. No new functionality is
introduced.
1. Three new member methods are introduced: `RunPrescan`, `RunParse`,
`RunSemanticChecks`.
2. The following free functions are re-implemented as member methods:
* `reportFatalSemanticErrors`
* `reportFatalScanningErrors`
* `reportFatalParsingErrors`
* `reportFatalErrors`
`reportFatalSemanticErrors` is updated to resemble the other error
reporting functions and to make the API more consistent.
3. The `BeginSourceFileAction` methods are simplified and the unused
input argument is deleted.
Differential Revision: https://reviews.llvm.org/D108130
More information about the All-commits
mailing list