ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change
on this file since 03286aa was
ec79847,
checked in by Rob Schluntz <rschlunt@…>, 8 years ago
|
don't include global init/destroy functions if they're empty, remove all implicit single parameter intrinsic ctor/dtor calls
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[71f4e4f] | 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 | // FixInit.h -- |
---|
| 8 | // |
---|
| 9 | // Author : Rob Schluntz |
---|
| 10 | // Created On : Wed Jan 13 16:29:30 2016 |
---|
| 11 | // Last Modified By : Rob Schluntz |
---|
[ec79847] | 12 | // Last Modified On : Mon May 09 12:08:11 2016 |
---|
[71f4e4f] | 13 | // Update Count : 5 |
---|
| 14 | // |
---|
| 15 | |
---|
| 16 | #ifndef FIX_INIT_H |
---|
| 17 | #define FIX_INIT_H |
---|
| 18 | |
---|
| 19 | #include <string> |
---|
| 20 | #include <list> |
---|
| 21 | |
---|
| 22 | #include "SynTree/SynTree.h" |
---|
| 23 | #include "SynTree/Declaration.h" |
---|
| 24 | #include "SynTree/Mutator.h" |
---|
| 25 | |
---|
| 26 | namespace InitTweak { |
---|
| 27 | /// replace constructor initializers with expression statements |
---|
| 28 | /// and unwrap basic C-style initializers |
---|
| 29 | void fix( std::list< Declaration * > & translationUnit ); |
---|
[ec79847] | 30 | |
---|
| 31 | /// True if stmt is a call statement where the function called is intrinsic and takes one parameter. |
---|
| 32 | /// Intended to be used for default ctor/dtor calls, but might have use elsewhere. |
---|
| 33 | /// Currently has assertions that make it less than fully general. |
---|
| 34 | bool isInstrinsicSingleArgCallStmt( Statement * expr ); |
---|
[71f4e4f] | 35 | } // namespace |
---|
| 36 | |
---|
| 37 | #endif // GENPOLY_POLYMUTATOR_H |
---|
| 38 | |
---|
| 39 | // Local Variables: // |
---|
| 40 | // tab-width: 4 // |
---|
| 41 | // mode: c++ // |
---|
| 42 | // compile-command: "make install" // |
---|
| 43 | // End: // |
---|
Note: See
TracBrowser
for help on using the repository browser.