source: src/AST/Eval.hpp @ 89a5a1f

ADTast-experimentalenumforall-pointer-decaypthread-emulationqualifiedEnum
Last change on this file since 89a5a1f was 91a72ef, checked in by Andrew Beach <ajbeach@…>, 3 years ago

Some assorted bits of clean-up. InitializerLength? was missing some pieces. Other than that it is white space fixes.

  • Property mode set to 100644
File size: 901 bytes
RevLine 
[417117e]1//
2// Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
3//
4// The contents of this file are covered under the licence agreement in the
5// file "LICENCE" distributed with Cforall.
6//
7// Eval.hpp --
8//
9// Author           : Aaron B. Moss
10// Created On       : Fri Jun 28 14:00:00 2019
11// Last Modified By : Aaron B. Moss
12// Created On       : Fri Jun 28 14:00:00 2019
13// Update Count     : 1
14//
15
16#include <string>
17#include <utility>
18
19#include "Expr.hpp"
20
21namespace ast {
22
23/// Create a new UntypedExpr with the given arguments
24template< typename... Args >
25UntypedExpr * call( const CodeLocation & loc, const std::string & name, Args &&... args ) {
[91a72ef]26        return new UntypedExpr {
27                loc, new NameExpr { loc, name },
[417117e]28                std::vector< ptr< Expr > > { std::forward< Args >( args )... } };
29}
30
31}
32
33// Local Variables: //
34// tab-width: 4 //
35// mode: c++ //
36// compile-command: "make install" //
37// End: //
Note: See TracBrowser for help on using the repository browser.