| [a32b204] | 1 | //
 | 
|---|
 | 2 | // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
 | 
|---|
 | 3 | //
 | 
|---|
 | 4 | // The contents of this file are covered under the licence agreement in the
 | 
|---|
 | 5 | // file "LICENCE" distributed with Cforall.
 | 
|---|
 | 6 | //
 | 
|---|
| [db4ecc5] | 7 | // Resolver.h --
 | 
|---|
| [a32b204] | 8 | //
 | 
|---|
 | 9 | // Author           : Richard C. Bilson
 | 
|---|
 | 10 | // Created On       : Sun May 17 12:18:34 2015
 | 
|---|
| [6b0b624] | 11 | // Last Modified By : Peter A. Buhr
 | 
|---|
| [5170d95] | 12 | // Last Modified On : Mon Feb 18 20:40:38 2019
 | 
|---|
 | 13 | // Update Count     : 4
 | 
|---|
| [a32b204] | 14 | //
 | 
|---|
 | 15 | 
 | 
|---|
| [6b0b624] | 16 | #pragma once
 | 
|---|
| [51b73452] | 17 | 
 | 
|---|
| [d76c588] | 18 | #include <list>          // for list
 | 
|---|
 | 19 | #include <AST/Node.hpp>  // for ptr
 | 
|---|
| [ea6332d] | 20 | 
 | 
|---|
 | 21 | class ConstructorInit;
 | 
|---|
 | 22 | class Declaration;
 | 
|---|
 | 23 | class Expression;
 | 
|---|
 | 24 | class StmtExpr;
 | 
|---|
 | 25 | namespace SymTab {
 | 
|---|
| [d76c588] | 26 |         class Indexer;
 | 
|---|
 | 27 | } // namespace SymTab
 | 
|---|
 | 28 | 
 | 
|---|
 | 29 | namespace ast {
 | 
|---|
 | 30 |         class Decl;
 | 
|---|
 | 31 | } // namespace ast
 | 
|---|
| [51b73452] | 32 | 
 | 
|---|
 | 33 | namespace ResolvExpr {
 | 
|---|
| [82dd287] | 34 |         /// Checks types and binds syntactic constructs to typed representations
 | 
|---|
| [a32b204] | 35 |         void resolve( std::list< Declaration * > translationUnit );
 | 
|---|
| [5170d95] | 36 |         void resolveDecl( Declaration *, const SymTab::Indexer & indexer );
 | 
|---|
 | 37 |         Expression *resolveInVoidContext( Expression * expr, const SymTab::Indexer & indexer );
 | 
|---|
 | 38 |         void findVoidExpression( Expression *& untyped, const SymTab::Indexer & indexer );
 | 
|---|
 | 39 |         void findSingleExpression( Expression *& untyped, const SymTab::Indexer & indexer );
 | 
|---|
 | 40 |         void findSingleExpression( Expression *& untyped, Type * type, const SymTab::Indexer & indexer );
 | 
|---|
| [1d2b64f] | 41 |         void resolveCtorInit( ConstructorInit * ctorInit, const SymTab::Indexer & indexer );
 | 
|---|
 | 42 |         void resolveStmtExpr( StmtExpr * stmtExpr, const SymTab::Indexer & indexer );
 | 
|---|
| [630bcb5] | 43 |         /// Searches expr and returns the first DeletedExpr found, otherwise nullptr
 | 
|---|
 | 44 |         DeletedExpr * findDeletedExpr( Expression * expr );
 | 
|---|
| [2a6292d] | 45 |         /// Resolves with-stmts and with-clauses on functions
 | 
|---|
 | 46 |         void resolveWithExprs( std::list< Declaration * > & translationUnit );
 | 
|---|
| [d76c588] | 47 | 
 | 
|---|
 | 48 |         /// Checks types and binds syntactic constructs to typed representations
 | 
|---|
 | 49 |         void resolve( std::list< ast::ptr<ast::Decl> >& translationUnit );
 | 
|---|
| [51b73452] | 50 | } // namespace ResolvExpr
 | 
|---|
 | 51 | 
 | 
|---|
| [a32b204] | 52 | // Local Variables: //
 | 
|---|
 | 53 | // tab-width: 4 //
 | 
|---|
 | 54 | // mode: c++ //
 | 
|---|
 | 55 | // compile-command: "make install" //
 | 
|---|
 | 56 | // End: //
 | 
|---|