Changes in src/SynTree/ObjectDecl.cc [a7c90d4:faddbd8]
- File:
-
- 1 edited
-
src/SynTree/ObjectDecl.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/ObjectDecl.cc
ra7c90d4 rfaddbd8 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Mar 7 07:55:24 201713 // Update Count : 5412 // Last Modified On : Sat Oct 1 23:05:56 2016 13 // Update Count : 32 14 14 // 15 15 … … 22 22 #include "Statement.h" 23 23 24 ObjectDecl::ObjectDecl( const std::string &name, DeclarationNode::StorageClasses scs, LinkageSpec::Spec linkage, Expression *bitfieldWidth, Type *type, Initializer *init, const std::list< Attribute * > attributes, DeclarationNode::FuncSpecifiers fs ) 25 : Parent( name, scs, linkage, attributes, fs ), type( type ), init( init ), bitfieldWidth( bitfieldWidth ) { 24 ObjectDecl::ObjectDecl( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Spec linkage, Expression *bitfieldWidth, Type *type, Initializer *init, const std::list< Attribute * > attributes, bool isInline, bool isNoreturn ) 25 : Parent( name, sc, linkage, attributes ), type( type ), init( init ), bitfieldWidth( bitfieldWidth ) { 26 set_isInline( isInline ); 27 set_isNoreturn( isNoreturn ); 26 28 } 27 29 … … 47 49 printAll( get_attributes(), os, indent ); 48 50 49 DeclarationNode::print_StorageClass( os, get_storageClasses() ); 51 if ( get_storageClass() != DeclarationNode::NoStorageClass ) { 52 os << DeclarationNode::storageName[ get_storageClass() ] << ' '; 53 } // if 50 54 51 55 if ( get_type() ) { … … 81 85 // xxx - should printShort print attributes? 82 86 83 DeclarationNode::print_StorageClass( os, get_storageClasses() ); 87 if ( get_storageClass() != DeclarationNode::NoStorageClass ) { 88 os << DeclarationNode::storageName[ get_storageClass() ] << ' '; 89 } // if 84 90 85 91 if ( get_type() ) {
Note:
See TracChangeset
for help on using the changeset viewer.