Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/DeclarationNode.cc

    re07caa2 rf2f512ba  
    1010// Created On       : Sat May 16 12:34:05 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Jul 19 17:40:03 2018
    13 // Update Count     : 1106
     12// Last Modified On : Fri Jul 20 14:56:54 2018
     13// Update Count     : 1107
    1414//
    1515
     
    124124} // DeclarationNode::clone
    125125
    126 void DeclarationNode::print( std::ostream &os, int indent ) const {
     126void DeclarationNode::print( std::ostream & os, int indent ) const {
    127127        os << string( indent, ' ' );
    128128        if ( name ) {
     
    160160}
    161161
    162 void DeclarationNode::printList( std::ostream &os, int indent ) const {
     162void DeclarationNode::printList( std::ostream & os, int indent ) const {
    163163        ParseNode::printList( os, indent );
    164164        if ( hasEllipsis ) {
     
    514514} // DeclarationNode::copySpecifiers
    515515
    516 static void addQualifiersToType( TypeData *&src, TypeData * dst ) {
     516static void addQualifiersToType( TypeData *& src, TypeData * dst ) {
    517517        if ( dst->base ) {
    518518                addQualifiersToType( src, dst->base );
     
    567567} // addQualifiers
    568568
    569 static void addTypeToType( TypeData *&src, TypeData *&dst ) {
     569static void addTypeToType( TypeData *& src, TypeData *& dst ) {
    570570        if ( src->forall && dst->kind == TypeData::Function ) {
    571571                if ( dst->forall ) {
     
    958958}
    959959
    960 void buildList( const DeclarationNode * firstNode, std::list< Declaration * > &outputList ) {
     960void buildList( const DeclarationNode * firstNode, std::list< Declaration * > & outputList ) {
    961961        SemanticErrorException errors;
    962962        std::back_insert_iterator< std::list< Declaration * > > out( outputList );
     
    10131013                                } // if
    10141014                        } // if
    1015                 } catch( SemanticErrorException &e ) {
     1015                } catch( SemanticErrorException & e ) {
    10161016                        errors.append( e );
    10171017                } // try
     
    10241024
    10251025// currently only builds assertions, function parameters, and return values
    1026 void buildList( const DeclarationNode * firstNode, std::list< DeclarationWithType * > &outputList ) {
     1026void buildList( const DeclarationNode * firstNode, std::list< DeclarationWithType * > & outputList ) {
    10271027        SemanticErrorException errors;
    10281028        std::back_insert_iterator< std::list< DeclarationWithType * > > out( outputList );
     
    10551055                                * out++ = obj;
    10561056                        } // if
    1057                 } catch( SemanticErrorException &e ) {
     1057                } catch( SemanticErrorException & e ) {
    10581058                        errors.append( e );
    10591059                } // try
     
    10651065} // buildList
    10661066
    1067 void buildTypeList( const DeclarationNode * firstNode, std::list< Type * > &outputList ) {
     1067void buildTypeList( const DeclarationNode * firstNode, std::list< Type * > & outputList ) {
    10681068        SemanticErrorException errors;
    10691069        std::back_insert_iterator< std::list< Type * > > out( outputList );
     
    10731073                try {
    10741074                        * out++ = cur->buildType();
    1075                 } catch( SemanticErrorException &e ) {
     1075                } catch( SemanticErrorException & e ) {
    10761076                        errors.append( e );
    10771077                } // try
Note: See TracChangeset for help on using the changeset viewer.