Changes in src/SynTree/Declaration.cc [582ee28:ea6332d]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.cc
r582ee28 rea6332d 42 42 43 43 void Declaration::fixUniqueId() { 44 // don't need to set unique ID twice45 if ( uniqueId ) return;46 44 uniqueId = ++lastUniqueId; 47 45 idMap[ uniqueId ] = this; … … 61 59 } 62 60 61 std::ostream & operator<<( std::ostream & out, const Declaration * decl ) { 62 if ( decl ){ 63 decl->print( out ); 64 } else { 65 out << "nullptr"; 66 } 67 return out; 68 } 69 63 70 64 71 AsmDecl::AsmDecl( AsmStmt *stmt ) : Declaration( "", Type::StorageClasses(), LinkageSpec::C ), stmt( stmt ) { … … 72 79 } 73 80 74 void AsmDecl::print( std::ostream &os, Indenterindent ) const {81 void AsmDecl::print( std::ostream &os, int indent ) const { 75 82 stmt->print( os, indent ); 76 83 } 77 84 78 void AsmDecl::printShort( std::ostream &os, Indenterindent ) const {85 void AsmDecl::printShort( std::ostream &os, int indent ) const { 79 86 stmt->print( os, indent ); 80 87 }
Note:
See TracChangeset
for help on using the changeset viewer.