Ignore:
Timestamp:
Sep 27, 2017, 4:24:16 PM (4 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
8404321
Parents:
7fc7cdb
git-author:
Rob Schluntz <rschlunt@…> (09/27/17 15:52:12)
git-committer:
Rob Schluntz <rschlunt@…> (09/27/17 16:24:16)
Message:

Add newFunction helper to FunctionDecl?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/FunctionDecl.cc

    r7fc7cdb r75626a1  
    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.