llvm/flang/lib/semantics/check-do-concurrent.h
Steve Scalpone 3d892d56e9 [flang] Remove the IF specific context classes; in these cases they
added no value. Change several error messages to better say
what is expected.  Adjust tests for new messages.  Reformat
with llvm7 clang-format.

Original-commit: flang-compiler/f18@706b506e26
Reviewed-on: https://github.com/flang-compiler/f18/pull/356
Tree-same-pre-rewrite: false
2019-03-26 18:03:33 -07:00

41 lines
1.3 KiB
C++

// Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef FORTRAN_SEMANTICS_CHECK_DO_CONCURRENT_H_
#define FORTRAN_SEMANTICS_CHECK_DO_CONCURRENT_H_
#include "semantics.h"
#include "../common/indirection.h"
namespace Fortran::parser {
struct DoConstruct;
}
namespace Fortran::semantics {
class DoConcurrentContext;
}
extern template class Fortran::common::Indirection<
Fortran::semantics::DoConcurrentContext>;
namespace Fortran::semantics {
class DoConcurrentChecker : public virtual BaseChecker {
public:
explicit DoConcurrentChecker(SemanticsContext &);
~DoConcurrentChecker();
void Leave(const parser::DoConstruct &);
private:
common::Indirection<DoConcurrentContext> context_;
};
}
#endif // FORTRAN_SEMANTICS_CHECK_DO_CONCURRENT_H_