brintos

brintos / llvm-project-archived public Read only

0
0
Text · 934 B · 296a903 Raw
26 lines · c
1//===-- lib/Semantics/resolve-labels.h --------------------------*- C++ -*-===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef FORTRAN_SEMANTICS_RESOLVE_LABELS_H_10#define FORTRAN_SEMANTICS_RESOLVE_LABELS_H_11 12namespace Fortran::parser {13struct Program;14}15 16namespace Fortran::semantics {17class SemanticsContext;18 19/// \brief Validate the labels in the program20/// \param context   semantic context for errors21/// \param program    the parse tree of the program22/// \return true, iff the program's labels pass semantics checks23bool ValidateLabels(SemanticsContext &context, const parser::Program &program);24} // namespace Fortran::semantics25#endif // FORTRAN_SEMANTICS_RESOLVE_LABELS_H_26