Ignore:
Timestamp:
May 14, 2015, 1:44:55 PM (9 years ago)
Author:
Peter A. Buhr <pabuhr@…>
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:
4bf5298
Parents:
d4778a6
Message:

add inline and attribute qualifiers, cfa.y comment formatting, fix error message in isIntegralType

File:
1 edited

Legend:

Unmodified
Added
Removed
  • translator/SynTree/Statement.cc

    rd4778a6 rc11e31c  
    1414
    1515
    16 // *** Statement
    1716Statement::Statement(std::list<Label> _labels):
    1817    labels(_labels) {}
     
    2221Statement::~Statement() {}
    2322
    24 //*** ExprStmt
    2523ExprStmt::ExprStmt( std::list<Label> _labels, Expression *_expr ):
    2624    Statement(_labels), expr(_expr) {}
     
    3331}
    3432
    35 //*** BranchStmt
    3633const char *BranchStmt::brType[] = { "Goto", "Break", "Continue" };
    3734
     
    5754}
    5855
    59 //*** ReturnStmt
    6056ReturnStmt::ReturnStmt( std::list<Label> labels, Expression *_expr, bool throwP ) :
    6157    Statement( labels ), expr( _expr ), isThrow( throwP ) {}
     
    7268
    7369
    74 // *** IfStmt
    7570IfStmt::IfStmt( std::list<Label> _labels, Expression *_condition, Statement *_thenPart, Statement *_elsePart ):
    7671    Statement(_labels), condition(_condition), thenPart(_thenPart), elsePart(_elsePart) {}
     
    9186}
    9287
    93 // *** SwitchStmt
    9488SwitchStmt::SwitchStmt(std::list<Label> _labels, Expression * _condition, std::list<Statement *> &_branches):
    9589    Statement(_labels), condition(_condition), branches(_branches)
     
    116110}
    117111
    118 // *** CaseStmt
    119112CaseStmt::CaseStmt( std::list<Label> _labels, Expression *_condition,
    120113                                        std::list<Statement *> &_statements, bool deflt )
     
    147140}
    148141
    149 //*** ChooseStmt
    150142//ChooseStmt::ChooseStmt( std::list<Label> labels, Expression *condition, Statement *body ) {}
    151143ChooseStmt::ChooseStmt(std::list<Label> _labels, Expression * _condition, std::list<Statement *> &_branches):
     
    172164}
    173165
    174 //*** FallthruStmt
    175166void FallthruStmt::print(std::ostream &os, int indent) {
    176167    os << "\r" << string(indent, ' ') << "Fall-through statement" << endl;
    177168}
    178169
    179 //*** WhileStmt
    180170WhileStmt::WhileStmt( std::list<Label> labels, Expression *condition_,
    181171                                            Statement *body_, bool isDoWhile_ ):
     
    196186}
    197187
    198 //*** ForStmt
    199188ForStmt::ForStmt( std::list<Label> labels, Statement *initialization_,
    200189                                    Expression *condition_, Expression *increment_, Statement *body_ ):
     
    233222}
    234223
    235 //*** TryStmt
    236224TryStmt::TryStmt( std::list<Label> labels, CompoundStmt *tryBlock, std::list<Statement *> &_handlers, FinallyStmt *_finallyBlock ) :
    237225    Statement( labels ), block( tryBlock ),  handlers( _handlers ), finallyBlock( _finallyBlock )
     
    266254}
    267255
    268 //*** CatchStmt
    269256CatchStmt::CatchStmt( std::list<Label> labels, Declaration *_decl, Statement *_body, bool isCatchRest ) :
    270257    Statement( labels ), decl ( _decl ), body( _body ), catchRest ( isCatchRest )
     
    290277
    291278
    292 //*** FinallyStmt
    293279FinallyStmt::FinallyStmt( std::list<Label> labels, CompoundStmt *_block ) :
    294280    Statement( labels ), block( _block )
     
    307293}
    308294
    309 //*** NullStmt
    310295NullStmt::NullStmt( std::list<Label> labels ) : CompoundStmt( labels ) {}
    311296NullStmt::NullStmt() : CompoundStmt( std::list<Label>() ) {}
Note: See TracChangeset for help on using the changeset viewer.