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 6b0b624 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 | // 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 <string> |
---|
19 | #include <list> |
---|
20 | |
---|
21 | #include "SynTree/SynTree.h" |
---|
22 | #include "SynTree/Declaration.h" |
---|
23 | |
---|
24 | namespace InitTweak { |
---|
25 | /// Moves global initialization into an _init function that is unique to the translation unit. |
---|
26 | /// Sets the priority of the initialization function depending on whether the initialization |
---|
27 | /// function is for library code. |
---|
28 | void fixGlobalInit( std::list< Declaration * > & translationUnit, const std::string & name, bool inLibrary ); |
---|
29 | |
---|
30 | /// Apply transformations to a file name to get a valid C identifier which will be used as |
---|
31 | /// the name of the generated initializer function. |
---|
32 | std::string globalFunctionName( const std::string & name ); |
---|
33 | } // namespace |
---|
34 | |
---|
35 | // Local Variables: // |
---|
36 | // tab-width: 4 // |
---|
37 | // mode: c++ // |
---|
38 | // compile-command: "make install" // |
---|
39 | // End: // |
---|
Note: See
TracBrowser
for help on using the repository browser.