Ignore:
Timestamp:
Jun 3, 2019, 10:54:01 AM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
0e315a5, dafe9e1
Parents:
043a5b6 (diff), 8d70648 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/typeops.h

    r043a5b6 ra935892  
    1818#include <vector>
    1919
     20#include "AST/Fwd.hpp"
    2021#include "AST/Node.hpp"
     22#include "AST/SymbolTable.hpp"
    2123#include "AST/Type.hpp"
     24#include "AST/TypeEnvironment.hpp"
    2225#include "SynTree/SynTree.h"
    2326#include "SynTree/Type.h"
     
    99102        }
    100103
     104        bool typesCompatible(
     105                const ast::Type *, const ast::Type *, const ast::SymbolTable &,
     106                const ast::TypeEnvironment & env = {} );
     107       
     108        bool typesCompatibleIgnoreQualifiers(
     109                const ast::Type *, const ast::Type *, const ast::SymbolTable &,
     110                const ast::TypeEnvironment & env = {} );
     111
    101112        /// creates the type represented by the list of returnVals in a FunctionType. The caller owns the return value.
    102113        Type * extractResultType( FunctionType * functionType );
     
    115126        // in Occurs.cc
    116127        bool occurs( Type *type, std::string varName, const TypeEnvironment &env );
     128        // new AST version in TypeEnvironment.cpp (only place it was used in old AST)
    117129
    118130        template<typename Iter>
     
    127139        // in AlternativeFinder.cc
    128140        void referenceToRvalueConversion( Expression *& expr, Cost & cost );
     141        const ast::Expr * referenceToRvalueConversion( const ast::Expr * expr, Cost & cost );
    129142
    130143        // flatten tuple type into list of types
Note: See TracChangeset for help on using the changeset viewer.