ADTast-experimentalenumforall-pointer-decaypthread-emulationqualifiedEnum
Last change
on this file since 91a72ef 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
|
Line | |
---|
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 | |
---|
21 | namespace ast { |
---|
22 | |
---|
23 | /// Create a new UntypedExpr with the given arguments |
---|
24 | template< typename... Args > |
---|
25 | UntypedExpr * call( const CodeLocation & loc, const std::string & name, Args &&... args ) { |
---|
26 | return new UntypedExpr { |
---|
27 | loc, new NameExpr { loc, name }, |
---|
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.