[lldb] Add ability to hide the root name of a value
[llvm-project.git] / flang / lib / Semantics / resolve-labels.h
blob296a90305a41ed498fa1c645b633c6b674372cc3
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-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef FORTRAN_SEMANTICS_RESOLVE_LABELS_H_
10 #define FORTRAN_SEMANTICS_RESOLVE_LABELS_H_
12 namespace Fortran::parser {
13 struct Program;
16 namespace Fortran::semantics {
17 class SemanticsContext;
19 /// \brief Validate the labels in the program
20 /// \param context semantic context for errors
21 /// \param program the parse tree of the program
22 /// \return true, iff the program's labels pass semantics checks
23 bool ValidateLabels(SemanticsContext &context, const parser::Program &program);
24 } // namespace Fortran::semantics
25 #endif // FORTRAN_SEMANTICS_RESOLVE_LABELS_H_