Changeset d8938622 for src/AST/Node.hpp


Ignore:
Timestamp:
May 22, 2019, 3:38:47 PM (3 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
arm-eh, cleanup-dtors, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
Children:
6380f78
Parents:
37eef7a
Message:

Broken GenericSubstitution? version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Node.hpp

    r37eef7a rd8938622  
    9494std::ostream& operator<< ( std::ostream& out, const Node * node );
    9595
     96/// Call a visitor on a possibly-null node
     97template<typename node_t>
     98auto maybe_accept( const node_t * n, Visitor & v ) -> decltype( n->accept(v) ) {
     99        return n ? n->accept( v ) : nullptr;
     100}
     101
    96102/// Base class for the smart pointer types
    97103/// should never really be used.
Note: See TracChangeset for help on using the changeset viewer.