Changeset 3f7e12cb for src/SynTree/Declaration.cc
- Timestamp:
- Nov 8, 2017, 5:43:33 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 954908d
- Parents:
- 78315272 (diff), e35f30a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.cc
r78315272 r3f7e12cb 42 42 43 43 void Declaration::fixUniqueId() { 44 // don't need to set unique ID twice 45 if ( uniqueId ) return; 44 46 uniqueId = ++lastUniqueId; 45 47 idMap[ uniqueId ] = this; … … 59 61 } 60 62 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 70 63 71 64 AsmDecl::AsmDecl( AsmStmt *stmt ) : Declaration( "", Type::StorageClasses(), LinkageSpec::C ), stmt( stmt ) { … … 79 72 } 80 73 81 void AsmDecl::print( std::ostream &os, intindent ) const {74 void AsmDecl::print( std::ostream &os, Indenter indent ) const { 82 75 stmt->print( os, indent ); 83 76 } 84 77 85 void AsmDecl::printShort( std::ostream &os, intindent ) const {78 void AsmDecl::printShort( std::ostream &os, Indenter indent ) const { 86 79 stmt->print( os, indent ); 87 80 }
Note:
See TracChangeset
for help on using the changeset viewer.