Changeset 68cd1ce for src/SynTree/FunctionDecl.cc
- Timestamp:
- Jun 13, 2015, 8:30:25 AM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- a1d5d2a
- Parents:
- 7bcf74e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/FunctionDecl.cc
r7bcf74e r68cd1ce 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S un Jun 7 08:36:44201513 // Update Count : 1 212 // Last Modified On : Sat Jun 13 08:12:20 2015 13 // Update Count : 14 14 14 // 15 15 … … 21 21 #include "utility.h" 22 22 23 FunctionDecl::FunctionDecl( const std::string &name, StorageClass sc, LinkageSpec::Type linkage, FunctionType *type, CompoundStmt *statements, bool isInline )23 FunctionDecl::FunctionDecl( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Type linkage, FunctionType *type, CompoundStmt *statements, bool isInline ) 24 24 : Parent( name, sc, linkage ), type( type ), statements( statements ), isInline( isInline ) { 25 25 // this is a brazen hack to force the function "main" to have C linkage … … 60 60 os << "inline "; 61 61 } // if 62 if ( get_storageClass() != NoStorageClass ) {63 os << storageClassName[ get_storageClass() ] << ' ';62 if ( get_storageClass() != DeclarationNode::NoStorageClass ) { 63 os << DeclarationNode::storageName[ get_storageClass() ] << ' '; 64 64 } // if 65 65 if ( get_type() ) { … … 96 96 os << "inline "; 97 97 } // if 98 if ( get_storageClass() != NoStorageClass ) {99 os << storageClassName[ get_storageClass() ] << ' ';98 if ( get_storageClass() != DeclarationNode::NoStorageClass ) { 99 os << DeclarationNode::storageName[ get_storageClass() ] << ' '; 100 100 } // if 101 101 if ( get_type() ) {
Note: See TracChangeset
for help on using the changeset viewer.