Changes in src/Parser/DeclarationNode.cc [e07caa2:f2f512ba]
- File:
-
- 1 edited
-
src/Parser/DeclarationNode.cc (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/DeclarationNode.cc
re07caa2 rf2f512ba 10 10 // Created On : Sat May 16 12:34:05 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jul 19 17:40:03201813 // Update Count : 110 612 // Last Modified On : Fri Jul 20 14:56:54 2018 13 // Update Count : 1107 14 14 // 15 15 … … 124 124 } // DeclarationNode::clone 125 125 126 void DeclarationNode::print( std::ostream & os, int indent ) const {126 void DeclarationNode::print( std::ostream & os, int indent ) const { 127 127 os << string( indent, ' ' ); 128 128 if ( name ) { … … 160 160 } 161 161 162 void DeclarationNode::printList( std::ostream & os, int indent ) const {162 void DeclarationNode::printList( std::ostream & os, int indent ) const { 163 163 ParseNode::printList( os, indent ); 164 164 if ( hasEllipsis ) { … … 514 514 } // DeclarationNode::copySpecifiers 515 515 516 static void addQualifiersToType( TypeData *& src, TypeData * dst ) {516 static void addQualifiersToType( TypeData *& src, TypeData * dst ) { 517 517 if ( dst->base ) { 518 518 addQualifiersToType( src, dst->base ); … … 567 567 } // addQualifiers 568 568 569 static void addTypeToType( TypeData *& src, TypeData *&dst ) {569 static void addTypeToType( TypeData *& src, TypeData *& dst ) { 570 570 if ( src->forall && dst->kind == TypeData::Function ) { 571 571 if ( dst->forall ) { … … 958 958 } 959 959 960 void buildList( const DeclarationNode * firstNode, std::list< Declaration * > & outputList ) {960 void buildList( const DeclarationNode * firstNode, std::list< Declaration * > & outputList ) { 961 961 SemanticErrorException errors; 962 962 std::back_insert_iterator< std::list< Declaration * > > out( outputList ); … … 1013 1013 } // if 1014 1014 } // if 1015 } catch( SemanticErrorException & e ) {1015 } catch( SemanticErrorException & e ) { 1016 1016 errors.append( e ); 1017 1017 } // try … … 1024 1024 1025 1025 // currently only builds assertions, function parameters, and return values 1026 void buildList( const DeclarationNode * firstNode, std::list< DeclarationWithType * > & outputList ) {1026 void buildList( const DeclarationNode * firstNode, std::list< DeclarationWithType * > & outputList ) { 1027 1027 SemanticErrorException errors; 1028 1028 std::back_insert_iterator< std::list< DeclarationWithType * > > out( outputList ); … … 1055 1055 * out++ = obj; 1056 1056 } // if 1057 } catch( SemanticErrorException & e ) {1057 } catch( SemanticErrorException & e ) { 1058 1058 errors.append( e ); 1059 1059 } // try … … 1065 1065 } // buildList 1066 1066 1067 void buildTypeList( const DeclarationNode * firstNode, std::list< Type * > & outputList ) {1067 void buildTypeList( const DeclarationNode * firstNode, std::list< Type * > & outputList ) { 1068 1068 SemanticErrorException errors; 1069 1069 std::back_insert_iterator< std::list< Type * > > out( outputList ); … … 1073 1073 try { 1074 1074 * out++ = cur->buildType(); 1075 } catch( SemanticErrorException & e ) {1075 } catch( SemanticErrorException & e ) { 1076 1076 errors.append( e ); 1077 1077 } // try
Note:
See TracChangeset
for help on using the changeset viewer.