[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / flang / tools / f18-parse-demo / stub-evaluate.cpp
blob854e5758743d24de9fa6ccb19da798abc96e96d8
1 //===-- tools/f18/stub-evaluate.cpp ---------------------------------------===//
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 // The parse tree has slots in which pointers to the results of semantic
10 // analysis may be placed. When using the parser without the semantics
11 // libraries, as here, we need to stub out the dependences on the external
12 // deleters, which will never actually be called.
14 namespace Fortran::evaluate {
15 struct GenericExprWrapper {
16 static void Deleter(GenericExprWrapper *);
18 void GenericExprWrapper::Deleter(GenericExprWrapper *) {}
19 struct GenericAssignmentWrapper {
20 static void Deleter(GenericAssignmentWrapper *);
22 void GenericAssignmentWrapper::Deleter(GenericAssignmentWrapper *) {}
23 struct ProcedureRef {
24 static void Deleter(ProcedureRef *);
26 void ProcedureRef::Deleter(ProcedureRef *) {}
27 } // namespace Fortran::evaluate