Changes in src/SynTree/ObjectDecl.cc [68cd1ce:843054c2]
- File:
-
- 1 edited
-
src/SynTree/ObjectDecl.cc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/ObjectDecl.cc
r68cd1ce r843054c2 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Jun 13 08:10:16201513 // Update Count : 1512 // Last Modified On : Mon May 18 10:14:18 2015 13 // Update Count : 2 14 14 // 15 15 … … 20 20 #include "utility.h" 21 21 22 ObjectDecl::ObjectDecl( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Type linkage, Expression *bitfieldWidth, Type *type, Initializer *init )22 ObjectDecl::ObjectDecl( const std::string &name, StorageClass sc, LinkageSpec::Type linkage, Expression *bitfieldWidth, Type *type, Initializer *init ) 23 23 : Parent( name, sc, linkage ), type( type ), init( init ), bitfieldWidth( bitfieldWidth ) { 24 24 } … … 36 36 void ObjectDecl::print( std::ostream &os, int indent ) const { 37 37 if ( get_name() != "" ) { 38 os << get_name() << ": ";38 os << get_name() << ": a "; 39 39 } // if 40 40 … … 43 43 } // if 44 44 45 if ( get_storageClass() != DeclarationNode::NoStorageClass ) {46 os << DeclarationNode::storageName[ get_storageClass() ] << ' ';45 if ( get_storageClass() != NoStorageClass ) { 46 os << storageClassName[ get_storageClass() ] << ' '; 47 47 } // if 48 48 … … 65 65 66 66 void ObjectDecl::printShort( std::ostream &os, int indent ) const { 67 #if 068 if ( get_mangleName() != "") {69 os << get_mangleName() << ": ";70 } else71 #endif72 67 if ( get_name() != "" ) { 73 os << get_name() << ": ";68 os << get_name() << ": a "; 74 69 } // if 75 70 76 if ( get_storageClass() != DeclarationNode::NoStorageClass ) {77 os << DeclarationNode::storageName[ get_storageClass() ] << ' ';71 if ( get_storageClass() != NoStorageClass ) { 72 os << storageClassName[ get_storageClass() ] << ' '; 78 73 } // if 79 74
Note:
See TracChangeset
for help on using the changeset viewer.