ADTast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change
on this file since fa7dbf1 was
417117e,
checked in by Aaron Moss <a3moss@…>, 5 years ago
|
Assorted cleanup
|
-
Property mode set to
100644
|
File size:
903 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.