2020-02-25 23:11:52 +08:00
|
|
|
//===-- lib/Semantics/check-deallocate.h ------------------------*- C++ -*-===//
|
2019-04-11 13:17:44 +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-04-11 13:17:44 +08:00
|
|
|
//
|
2020-01-11 04:12:03 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
2019-04-11 13:17:44 +08:00
|
|
|
|
|
|
|
#ifndef FORTRAN_SEMANTICS_CHECK_DEALLOCATE_H_
|
|
|
|
#define FORTRAN_SEMANTICS_CHECK_DEALLOCATE_H_
|
|
|
|
|
2020-02-25 23:11:52 +08:00
|
|
|
#include "flang/Semantics/semantics.h"
|
2019-04-11 13:17:44 +08:00
|
|
|
|
|
|
|
namespace Fortran::parser {
|
|
|
|
struct DeallocateStmt;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace Fortran::semantics {
|
|
|
|
class DeallocateChecker : public virtual BaseChecker {
|
|
|
|
public:
|
2019-04-12 06:20:14 +08:00
|
|
|
DeallocateChecker(SemanticsContext &context) : context_{context} {}
|
2019-04-11 13:17:44 +08:00
|
|
|
void Leave(const parser::DeallocateStmt &);
|
|
|
|
|
|
|
|
private:
|
|
|
|
SemanticsContext &context_;
|
|
|
|
};
|
2020-03-29 12:00:16 +08:00
|
|
|
} // namespace Fortran::semantics
|
|
|
|
#endif // FORTRAN_SEMANTICS_CHECK_DEALLOCATE_H_
|