2020-02-25 23:11:52 +08:00
|
|
|
//===-- lib/Semantics/check-stop.h ------------------------------*- C++ -*-===//
|
2019-03-19 00:19:41 +08:00
|
|
|
//
|
2019-12-21 04:52:07 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2019-03-19 00:19:41 +08:00
|
|
|
//
|
2020-01-11 04:12:03 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
2019-03-19 00:19:41 +08:00
|
|
|
|
|
|
|
#ifndef FORTRAN_SEMANTICS_CHECK_STOP_H_
|
|
|
|
#define FORTRAN_SEMANTICS_CHECK_STOP_H_
|
|
|
|
|
2020-02-25 23:11:52 +08:00
|
|
|
#include "flang/Semantics/semantics.h"
|
2019-03-19 00:19:41 +08:00
|
|
|
|
|
|
|
namespace Fortran::parser {
|
|
|
|
struct StopStmt;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace Fortran::semantics {
|
|
|
|
|
|
|
|
// Semantic analysis of STOP and ERROR STOP statements.
|
|
|
|
class StopChecker : public virtual BaseChecker {
|
|
|
|
public:
|
2019-04-12 01:42:12 +08:00
|
|
|
explicit StopChecker(SemanticsContext &context) : context_{context} {};
|
2019-03-19 00:19:41 +08:00
|
|
|
|
|
|
|
void Enter(const parser::StopStmt &);
|
|
|
|
|
|
|
|
private:
|
|
|
|
SemanticsContext &context_;
|
|
|
|
};
|
|
|
|
|
2020-03-29 12:00:16 +08:00
|
|
|
} // namespace Fortran::semantics
|
2019-03-19 00:19:41 +08:00
|
|
|
|
2020-03-29 12:00:16 +08:00
|
|
|
#endif // FORTRAN_SEMANTICS_CHECK_STOP_H_
|