Ignore:
Timestamp:
Sep 27, 2017, 3:52:12 PM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
a4477db
Parents:
7c3f3be
Message:

Add newFunction helper to FunctionDecl?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/FunctionDecl.cc

    r7c3f3be r7ca84116  
    4444        delete type;
    4545        delete statements;
     46}
     47
     48FunctionDecl * FunctionDecl::newFunction( const std::string & name, FunctionType * type, CompoundStmt * statements ) {
     49        return new FunctionDecl( name, Type::StorageClasses(), LinkageSpec::C, type, statements );
    4650}
    4751
Note: See TracChangeset for help on using the changeset viewer.