Changes in src/SynTree/FunctionDecl.cc [68cd1ce:5f2f2d7]
- File:
-
- 1 edited
-
src/SynTree/FunctionDecl.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/FunctionDecl.cc
r68cd1ce r5f2f2d7 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S at Jun 13 08:12:20201513 // Update Count : 1 412 // Last Modified On : Sun Jun 7 08:36:44 2015 13 // Update Count : 12 14 14 // 15 15 … … 21 21 #include "utility.h" 22 22 23 FunctionDecl::FunctionDecl( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Type linkage, FunctionType *type, CompoundStmt *statements, bool isInline )23 FunctionDecl::FunctionDecl( const std::string &name, 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() != DeclarationNode::NoStorageClass ) {63 os << DeclarationNode::storageName[ get_storageClass() ] << ' ';62 if ( get_storageClass() != NoStorageClass ) { 63 os << storageClassName[ get_storageClass() ] << ' '; 64 64 } // if 65 65 if ( get_type() ) { … … 96 96 os << "inline "; 97 97 } // if 98 if ( get_storageClass() != DeclarationNode::NoStorageClass ) {99 os << DeclarationNode::storageName[ get_storageClass() ] << ' ';98 if ( get_storageClass() != NoStorageClass ) { 99 os << storageClassName[ get_storageClass() ] << ' '; 100 100 } // if 101 101 if ( get_type() ) {
Note:
See TracChangeset
for help on using the changeset viewer.