Changeset 8a5530c for src/AST/Pass.hpp


Ignore:
Timestamp:
May 16, 2019, 10:58:52 AM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
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:
f2e482cb
Parents:
89c2f7c9
Message:

Fixed FunctionType? cast, fixed maybe_accept, implemented statement visitation and fixed several nodes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Pass.hpp

    r89c2f7c9 r8a5530c  
    2929#include "AST/Init.hpp"
    3030#include "AST/Stmt.hpp"
     31#include "AST/Type.hpp"
    3132
    3233#include "AST/Visitor.hpp"
     
    189190
    190191        template< typename node_t >
    191         auto call_accept( const node_t * node ) -> decltype( node->accept(*this) );
     192        auto call_accept( const node_t * node ) -> typename std::enable_if<
     193                                !std::is_base_of<ast::Expr, node_t>::value &&
     194                                !std::is_base_of<ast::Stmt, node_t>::value
     195                        , decltype( node->accept(*this) )
     196                >::type;
    192197
    193198        template< template <class...> class container_t >
Note: See TracChangeset for help on using the changeset viewer.