[flang-commits] [flang] 8883db9 - [flang][plugins] Make `PluginParseTreeAction` an abstract class
Andrzej Warzynski via flang-commits
flang-commits at lists.llvm.org
Mon Sep 6 08:55:00 PDT 2021
Author: Andrzej Warzynski
Date: 2021-09-06T15:54:49Z
New Revision: 8883db90d1abbf9b7855ebaf829b75d7fee99da6
URL: https://github.com/llvm/llvm-project/commit/8883db90d1abbf9b7855ebaf829b75d7fee99da6
DIFF: https://github.com/llvm/llvm-project/commit/8883db90d1abbf9b7855ebaf829b75d7fee99da6.diff
LOG: [flang][plugins] Make `PluginParseTreeAction` an abstract class
There's no point in providing a default implementation for
`PluginParseTreeAction`. This patch makes it abstract forcing users to
specialise it in order to use it.
Differential Revision: https://reviews.llvm.org/D108518
Added:
Modified:
flang/include/flang/Frontend/FrontendActions.h
Removed:
################################################################################
diff --git a/flang/include/flang/Frontend/FrontendActions.h b/flang/include/flang/Frontend/FrontendActions.h
index ec9d9f79c694..70a052ca405b 100644
--- a/flang/include/flang/Frontend/FrontendActions.h
+++ b/flang/include/flang/Frontend/FrontendActions.h
@@ -128,7 +128,7 @@ class ParseSyntaxOnlyAction : public PrescanAndSemaAction {
};
class PluginParseTreeAction : public PrescanAndSemaAction {
- void ExecuteAction() override;
+ void ExecuteAction() override = 0;
};
} // namespace Fortran::frontend
More information about the flang-commits
mailing list