ADT
        aaron-thesis
        arm-eh
        ast-experimental
        cleanup-dtors
        deferred_resn
        demangler
        enum
        forall-pointer-decay
        jacob/cs343-translation
        jenkins-sandbox
        new-ast
        new-ast-unique-expr
        new-env
        no_list
        persistent-indexer
        pthread-emulation
        qualifiedEnum
        resolv-new
        with_gc
      
      
        
          | Last change
 on this file since 376ccadc was             092528b, checked in by Rob Schluntz <rschlunt@…>, 9 years ago | 
        
          | 
fix copy constructing/destructing qualified argument/return temporaries
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            1.3 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 : Rob Schluntz | 
|---|
| 12 | // Last Modified On : Fri May 13 11:27:19 2016 | 
|---|
| 13 | // Update Count     : 3 | 
|---|
| 14 | // | 
|---|
| 15 |  | 
|---|
| 16 | #ifndef GEN_INIT_H | 
|---|
| 17 | #define GEN_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 | /// Adds return value temporaries and wraps Initializers in ConstructorInit nodes | 
|---|
| 28 | void genInit( 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 | #endif // INITTWEAK_GENINIT_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.