Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/FunctionDecl.cc

    r1db21619 rde62360d  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Jul 13 18:11:44 2015
    13 // Update Count     : 19
     12// Last Modified On : Sat Jun 13 09:10:32 2015
     13// Update Count     : 16
    1414//
    1515
     
    2222
    2323FunctionDecl::FunctionDecl( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Type linkage, FunctionType *type, CompoundStmt *statements, bool isInline, bool isNoreturn )
    24                 : Parent( name, sc, linkage ), type( type ), statements( statements ) {
    25         set_isInline( isInline );
    26         set_isNoreturn( isNoreturn );
     24                : Parent( name, sc, linkage ), type( type ), statements( statements ), isInline( isInline ), isNoreturn( isNoreturn ) {
    2725        // this is a brazen hack to force the function "main" to have C linkage
    2826        if ( name == "main" ) {
     
    3230
    3331FunctionDecl::FunctionDecl( const FunctionDecl &other )
    34         : Parent( other ), type( maybeClone( other.type ) ), statements( maybeClone( other.statements ) ) {
     32        : Parent( other ), type( maybeClone( other.type ) ), statements( maybeClone( other.statements ) ), isInline( other.isInline ), isNoreturn( other.isNoreturn ) {
    3533}
    3634
     
    5957                os << LinkageSpec::toString( get_linkage() ) << " ";
    6058        } // if
    61         if ( get_isInline() ) {
     59        if ( isInline ) {
    6260                os << "inline ";
    6361        } // if
    64         if ( get_isNoreturn() ) {
     62        if ( isNoreturn ) {
    6563                os << "_Noreturn ";
    6664        } // if
     
    9896                os << get_name() << ": ";
    9997        } // if
    100         if ( get_isInline() ) {
     98        if ( isInline ) {
    10199                os << "inline ";
    102100        } // if
    103         if ( get_isNoreturn() ) {
     101        if ( isNoreturn ) {
    104102                os << "_Noreturn ";
    105103        } // if
Note: See TracChangeset for help on using the changeset viewer.