ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change
on this file since 275f4b4 was
6b0b624,
checked in by Peter A. Buhr <pabuhr@…>, 7 years ago
|
change #ifndef to #pragma once
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[51587aa] | 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 | // |
---|
[f0121d7] | 7 | // GenInit.h -- |
---|
[51587aa] | 8 | // |
---|
[843054c2] | 9 | // Author : Rodolfo G. Esteves |
---|
[51587aa] | 10 | // Created On : Mon May 18 07:44:20 2015 |
---|
[6b0b624] | 11 | // Last Modified By : Peter A. Buhr |
---|
| 12 | // Last Modified On : Sat Jul 22 09:31:19 2017 |
---|
| 13 | // Update Count : 4 |
---|
[51587aa] | 14 | // |
---|
[48e99f2] | 15 | |
---|
[6b0b624] | 16 | #pragma once |
---|
[48e99f2] | 17 | |
---|
| 18 | #include <string> |
---|
| 19 | #include <list> |
---|
| 20 | |
---|
| 21 | #include "SynTree/SynTree.h" |
---|
| 22 | #include "SynTree/Declaration.h" |
---|
| 23 | #include "SynTree/Mutator.h" |
---|
| 24 | |
---|
| 25 | namespace InitTweak { |
---|
[a0fdbd5] | 26 | /// Adds return value temporaries and wraps Initializers in ConstructorInit nodes |
---|
| 27 | void genInit( std::list< Declaration * > & translationUnit ); |
---|
[f0121d7] | 28 | |
---|
[092528b] | 29 | /// generates a single ctor/dtor statement using objDecl as the 'this' parameter and arg as the optional argument |
---|
| 30 | ImplicitCtorDtorStmt * genCtorDtor( const std::string & fname, ObjectDecl * objDecl, Expression * arg = nullptr ); |
---|
| 31 | |
---|
[f0121d7] | 32 | /// creates an appropriate ConstructorInit node which contains a constructor, destructor, and C-initializer |
---|
| 33 | ConstructorInit * genCtorInit( ObjectDecl * objDecl ); |
---|
[02c7d04] | 34 | } // namespace |
---|
[48e99f2] | 35 | |
---|
[51587aa] | 36 | // Local Variables: // |
---|
| 37 | // tab-width: 4 // |
---|
| 38 | // mode: c++ // |
---|
| 39 | // compile-command: "make install" // |
---|
| 40 | // End: // |
---|
Note: See
TracBrowser
for help on using the repository browser.