Changeset 71a3593 for src/Parser


Ignore:
Timestamp:
Aug 5, 2016, 12:06:29 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, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
d9e2280
Parents:
9706554 (diff), a2f920f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg2:software/cfa/cfa-cc

Location:
src/Parser
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/ExpressionNode.cc

    r9706554 r71a3593  
    529529//##############################################################################
    530530
    531 CommaExprNode::CommaExprNode(): CompositeExprNode( new OperatorNode( OperatorNode::Comma )) {}
    532 
    533 CommaExprNode::CommaExprNode( ExpressionNode *exp ) : CompositeExprNode( new OperatorNode( OperatorNode::Comma ), exp ) {
    534 }
    535 
    536 CommaExprNode::CommaExprNode( ExpressionNode *exp1, ExpressionNode *exp2) : CompositeExprNode( new OperatorNode( OperatorNode::Comma ), exp1, exp2) {
    537 }
    538 
    539 // CommaExprNode *CommaExprNode::add_to_list( ExpressionNode *exp ) {
    540 //      add_arg( exp );
    541 //
    542 //      return this;
    543 // }
    544 
    545 CommaExprNode::CommaExprNode( const CommaExprNode &other ) : CompositeExprNode( other ) {
    546 }
    547 
    548 //##############################################################################
    549 
    550531ValofExprNode::ValofExprNode( StatementNode *s ): body( s ) {}
    551532
  • src/Parser/ParseNode.h

    r9706554 r71a3593  
    324324  private:
    325325        std::list< Label > labels;
    326 };
    327 
    328 class CommaExprNode : public CompositeExprNode {
    329   public:
    330         CommaExprNode();
    331         CommaExprNode( ExpressionNode * );
    332         CommaExprNode( ExpressionNode *, ExpressionNode * );
    333         CommaExprNode( const CommaExprNode &other );
    334 
    335         // virtual CommaExprNode *add_to_list( ExpressionNode * );
    336         virtual CommaExprNode *clone() const { return new CommaExprNode( *this ); }
    337326};
    338327
     
    567556};
    568557
    569 class NullStmtNode : public CompoundStmtNode {
    570   public:
    571         Statement *build() const;
    572         void print( std::ostream &, int indent = 0 ) const;
    573 };
    574 
    575558class InitializerNode : public ParseNode {
    576559  public:
  • src/Parser/StatementNode.cc

    r9706554 r71a3593  
    417417}
    418418
    419 
    420 void NullStmtNode::print( ostream &os, int indent ) const {
    421         os << string( indent, ' ' ) << "Null Statement:" << endl;
    422 }
    423 
    424 Statement *NullStmtNode::build() const {
    425         return new NullStmt;
    426 }
    427 
    428419// Local Variables: //
    429420// tab-width: 4 //
  • src/Parser/TypeData.cc

    r9706554 r71a3593  
    510510                return buildVariable();
    511511        } else {
    512                 return new ObjectDecl( name, sc, linkage, bitfieldWidth, build(), init, isInline, isNoreturn );
     512                return new ObjectDecl( name, sc, linkage, bitfieldWidth, build(), init, std::list< Attribute * >(),  isInline, isNoreturn );
    513513        } // if
    514514        return 0;
Note: See TracChangeset for help on using the changeset viewer.