ADTarm-ehast-experimentalcleanup-dtorsenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change
on this file since 7c3f3be was
d180746,
checked in by Thierry Delisle <tdelisle@…>, 7 years ago
|
Big header cleaning pass - commit 2
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[711eee5] | 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 |
---|
[6b0b624] | 11 | // Last Modified By : Peter A. Buhr |
---|
| 12 | // Last Modified On : Sat Jul 22 09:30:54 2017 |
---|
| 13 | // Update Count : 3 |
---|
[711eee5] | 14 | // |
---|
| 15 | |
---|
[6b0b624] | 16 | #pragma once |
---|
[711eee5] | 17 | |
---|
[d180746] | 18 | #include <list> // for list |
---|
| 19 | #include <string> // for string |
---|
[711eee5] | 20 | |
---|
[d180746] | 21 | class Declaration; |
---|
[711eee5] | 22 | |
---|
| 23 | namespace InitTweak { |
---|
[03e5d14] | 24 | /// Moves global initialization into an _init function that is unique to the translation unit. |
---|
| 25 | /// Sets the priority of the initialization function depending on whether the initialization |
---|
| 26 | /// function is for library code. |
---|
| 27 | void fixGlobalInit( std::list< Declaration * > & translationUnit, const std::string & name, bool inLibrary ); |
---|
[711eee5] | 28 | |
---|
| 29 | /// Apply transformations to a file name to get a valid C identifier which will be used as |
---|
| 30 | /// the name of the generated initializer function. |
---|
[9e2c1f0] | 31 | std::string globalFunctionName( const std::string & name ); |
---|
[711eee5] | 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.