source: src/InitTweak/GenInit.h@ 7c3f3be

ADT arm-eh ast-experimental cleanup-dtors enum forall-pointer-decay jacob/cs343-translation jenkins-sandbox new-ast new-ast-unique-expr pthread-emulation qualifiedEnum
Last change on this file since 7c3f3be was 8b11840, checked in by Rob Schluntz <rschlunt@…>, 8 years ago

Cleanup pass through several files

  • Property mode set to 100644
File size: 1.4 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 <list> // for list
19#include <string> // for string
20
21#include "SynTree/SynTree.h" // for Visitor Nodes
22
23namespace InitTweak {
24 /// Adds return value temporaries and wraps Initializers in ConstructorInit nodes
25 void genInit( std::list< Declaration * > & translationUnit );
26
27 /// Converts return statements into copy constructor calls on the hidden return variable
28 void fixReturnStatements( std::list< Declaration * > & translationUnit );
29
30 /// generates a single ctor/dtor statement using objDecl as the 'this' parameter and arg as the optional argument
31 ImplicitCtorDtorStmt * genCtorDtor( const std::string & fname, ObjectDecl * objDecl, Expression * arg = nullptr );
32
33 /// creates an appropriate ConstructorInit node which contains a constructor, destructor, and C-initializer
34 ConstructorInit * genCtorInit( ObjectDecl * objDecl );
35} // namespace
36
37// Local Variables: //
38// tab-width: 4 //
39// mode: c++ //
40// compile-command: "make install" //
41// End: //
Note: See TracBrowser for help on using the repository browser.