Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/FunctionDecl.cc

    rf9cebb5 r1db21619  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // FunctionDecl.cc --
     7// FunctionDecl.cc -- 
    88//
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Rob Schluntz
    12 // Last Modified On : Fri May 06 15:59:48 2016
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Mon Jul 13 18:11:44 2015
    1313// Update Count     : 19
    1414//
     
    1919#include "Statement.h"
    2020#include "Type.h"
    21 #include "Attribute.h"
    22 #include "Common/utility.h"
     21#include "utility.h"
    2322
    24 FunctionDecl::FunctionDecl( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Type linkage, FunctionType *type, CompoundStmt *statements, bool isInline, bool isNoreturn, std::list< Attribute * > attributes )
    25                 : Parent( name, sc, linkage, attributes ), type( type ), statements( statements ) {
     23FunctionDecl::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 ) {
    2625        set_isInline( isInline );
    2726        set_isNoreturn( isNoreturn );
     
    5352        using std::endl;
    5453        using std::string;
    55 
     54       
    5655        if ( get_name() != "" ) {
    5756                os << get_name() << ": ";
     
    6665                os << "_Noreturn ";
    6766        } // if
    68 
    69         printAll( get_attributes(), os, indent );
    70 
    7167        if ( get_storageClass() != DeclarationNode::NoStorageClass ) {
    7268                os << DeclarationNode::storageName[ get_storageClass() ] << ' ';
     
    9187        if ( statements ) {
    9288                os << string( indent + 2, ' ' ) << "with body " << endl;
    93                 os << string( indent + 4, ' ' );
    9489                statements->print( os, indent + 4 );
    9590        } // if
     
    9994        using std::endl;
    10095        using std::string;
    101 
     96       
    10297        if ( get_name() != "" ) {
    10398                os << get_name() << ": ";
     
    109104                os << "_Noreturn ";
    110105        } // if
    111 
    112         // xxx - should printShort print attributes?
    113 
    114106        if ( get_storageClass() != DeclarationNode::NoStorageClass ) {
    115107                os << DeclarationNode::storageName[ get_storageClass() ] << ' ';
Note: See TracChangeset for help on using the changeset viewer.