Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/TypeEquality.cc

    r30f9072 r89e6ffc  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // TypeEquality.cc --
     7// TypeEquality.cc -- 
    88//
    99// Author           : Rob Schluntz
     
    1313// Update Count     : 37
    1414//
     15
     16#include <list>
     17#include <iterator>
     18#include "Validate.h"
     19#include "SynTree/Visitor.h"
     20#include "SynTree/Type.h"
     21#include "SynTree/Statement.h"
     22#include "SynTree/TypeSubstitution.h"
     23#include "Indexer.h"
    1524#include "TypeEquality.h"
    16 
    17 #include <cassert>                // for assert
    18 #include <list>                   // for list, list<>::iterator, _List_iterator
    19 #include <string>                 // for operator==, string, basic_string
    20 
    21 #include "SynTree/Constant.h"     // for Constant
    22 #include "SynTree/Declaration.h"  // for DeclarationWithType
    23 #include "SynTree/Expression.h"   // for ConstantExpr, Expression
    24 #include "SynTree/Type.h"         // for Type, ArrayType, FunctionType, Enum...
    25 #include "SynTree/Visitor.h"      // for Visitor
    2625
    2726namespace SymTab {
    2827        class TypeEquality : public Visitor {
    2928  public:
    30                 TypeEquality( Type * other, bool vlaErr ) : result( true ), other( other ),
     29                TypeEquality( Type * other, bool vlaErr ) : result( true ), other( other ), 
    3130                        vlaErr( vlaErr ) {}
    3231                bool result;
     
    7271                handleQualifiers( basicType );
    7372                if ( BasicType * bt = dynamic_cast< BasicType * >( other ) ) {
    74                         result = result && basicType->get_kind() == bt->get_kind();
     73                        result = result && basicType->get_kind() == bt->get_kind(); 
    7574                } else {
    7675                        result = false;
     
    9998
    10099                        if ( vlaErr ) {
    101                                 // useful for comparing typedef types - in this case, we
     100                                // useful for comparing typedef types - in this case, we 
    102101                                // want types to appear distinct if either is a VLA type
    103102                                if ( arrayType->get_isVarLen() || at->get_isVarLen() ) {
     
    147146
    148147                        // parameter types must be equivalent
    149                         it1 = funcType->get_parameters().begin();
     148                        it1 = funcType->get_parameters().begin(); 
    150149                        it2 = ft->get_parameters().begin();
    151150                        for ( ; it1 != funcType->get_parameters().end(); ++it1, ++it2 ) {
Note: See TracChangeset for help on using the changeset viewer.