source: src/InitTweak/FixGlobalInit.h @ fa5e1aa5

Last change on this file since fa5e1aa5 was 293dc1c, checked in by Andrew Beach <ajbeach@…>, 4 years ago

TranslationUnit? is now used at the top-level of the new-ast passes.

  • Property mode set to 100644
File size: 1.0 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// FixGlobalInit.h --
8//
9// Author           : Rob Schluntz
10// Created On       : Mon May 04 15:14:56 2016
11// Last Modified By : Peter A. Buhr
12// Last Modified On : Sat Jul 22 09:30:54 2017
13// Update Count     : 3
14//
15
16#pragma once
17
18#include <list>    // for list
19#include <string>  // for string
20
21#include <AST/Fwd.hpp>
22
23
24class Declaration;
25
26namespace InitTweak {
27        /// Moves global initialization into an _init function that is unique to the translation unit.
28        /// Sets the priority of the initialization function depending on whether the initialization
29        /// function is for library code.
30        void fixGlobalInit( std::list< Declaration * > & translationUnit, bool inLibrary );
31        void fixGlobalInit( ast::TranslationUnit & translationUnit, bool inLibrary );
32} // namespace
33
34// Local Variables: //
35// tab-width: 4 //
36// mode: c++ //
37// compile-command: "make install" //
38// End: //
Note: See TracBrowser for help on using the repository browser.