source: src/InitTweak/GenInit.h @ 1131392

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 1131392 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
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// GenInit.h --
8//
9// Author           : Rodolfo G. Esteves
10// Created On       : Mon May 18 07:44:20 2015
11// Last Modified By : Peter A. Buhr
12// Last Modified On : Sat Jul 22 09:31:19 2017
13// Update Count     : 4
14//
15
16#pragma once
17
18#include <string>
19#include <list>
20
21#include "SynTree/SynTree.h"
22#include "SynTree/Declaration.h"
23#include "SynTree/Mutator.h"
24
25namespace InitTweak {
26        /// Adds return value temporaries and wraps Initializers in ConstructorInit nodes
27        void genInit( std::list< Declaration * > & translationUnit );
28
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
32        /// creates an appropriate ConstructorInit node which contains a constructor, destructor, and C-initializer
33        ConstructorInit * genCtorInit( ObjectDecl * objDecl );
34} // namespace
35
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.