Changes in src/SynTree/AggregateDecl.cc [50377a4:ea6332d]
- File:
-
- 1 edited
-
src/SynTree/AggregateDecl.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/AggregateDecl.cc
r50377a4 rea6332d 41 41 } 42 42 43 void AggregateDecl::print( std::ostream &os, Indenterindent ) const {43 void AggregateDecl::print( std::ostream &os, int indent ) const { 44 44 using std::string; 45 45 using std::endl; 46 46 47 os << typeString() << " " << name<< ":";47 os << typeString() << " " << get_name() << ":"; 48 48 if ( get_linkage() != LinkageSpec::Cforall ) { 49 os << " " << LinkageSpec::linkageName( linkage);49 os << " " << LinkageSpec::linkageName( get_linkage() ); 50 50 } // if 51 os << " with body " << has_body() ;51 os << " with body " << has_body() << endl; 52 52 53 53 if ( ! parameters.empty() ) { 54 os << endl << indent << "...with parameters" << endl;55 printAll( parameters, os, indent+ 1);54 os << endl << string( indent+2, ' ' ) << "with parameters" << endl; 55 printAll( parameters, os, indent+4 ); 56 56 } // if 57 57 if ( ! members.empty() ) { 58 os << endl << indent << "...with members" << endl;59 printAll( members, os, indent+ 1);58 os << endl << string( indent+2, ' ' ) << "with members" << endl; 59 printAll( members, os, indent+4 ); 60 60 } // if 61 61 if ( ! attributes.empty() ) { 62 os << endl << indent << "...with attributes" << endl;63 printAll( attributes, os, indent+ 1);62 os << endl << string( indent+2, ' ' ) << "with attributes" << endl; 63 printAll( attributes, os, indent+4 ); 64 64 } // if 65 os << endl;66 65 } 67 66 68 void AggregateDecl::printShort( std::ostream &os, Indenterindent ) const {67 void AggregateDecl::printShort( std::ostream &os, int indent ) const { 69 68 using std::string; 70 69 using std::endl; 71 70 72 os << typeString() << " " << name << " with body " << has_body() << endl; 71 os << typeString() << " " << get_name(); 72 os << string( indent+2, ' ' ) << "with body " << has_body() << endl; 73 73 74 74 if ( ! parameters.empty() ) { 75 os << indent << "...with parameters" << endl;76 printAll( parameters, os, indent+ 1);75 os << endl << string( indent+2, ' ' ) << "with parameters" << endl; 76 printAll( parameters, os, indent+4 ); 77 77 } // if 78 78 }
Note:
See TracChangeset
for help on using the changeset viewer.