Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parserutility.h

    r6611177 rd180746  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // parserutility.h -- Collected utilities for the parser.
     7// parserutility.h --
    88//
    99// Author           : Rodolfo G. Esteves
    1010// Created On       : Sat May 16 15:31:46 2015
    11 // Last Modified By : Andrew Beach
    12 // Last Modified On : Tue Apr  4 14:03:00 2023
    13 // Update Count     : 7
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Sat Jul 22 09:32:58 2017
     13// Update Count     : 4
    1414//
    1515
    1616#pragma once
    1717
    18 #include "AST/Copy.hpp"            // for shallowCopy
    19 namespace ast {
    20         class Expr;
    21 }
     18class Expression;
    2219
    23 ast::Expr * notZeroExpr( ast::Expr *orig );
    24 
    25 template< typename T >
    26 static inline auto maybeBuild( T * orig ) -> decltype(orig->build()) {
    27         return (orig) ? orig->build() : nullptr;
    28 }
    29 
    30 template< typename T >
    31 static inline auto maybeMoveBuild( T * orig ) -> decltype(orig->build()) {
    32         auto ret = maybeBuild<T>(orig);
    33         delete orig;
    34         return ret;
    35 }
    36 
    37 template<typename node_t>
    38 node_t * maybeCopy( node_t const * node ) {
    39         return node ? ast::shallowCopy( node ) : nullptr;
    40 }
     20Expression *notZeroExpr( Expression *orig );
    4121
    4222// Local Variables: //
Note: See TracChangeset for help on using the changeset viewer.