ADT
        ast-experimental
      
      
      
| 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 | // ExceptTranslate.h -- Conversion of exception control flow structures.
 | 
|---|
| 8 | //
 | 
|---|
| 9 | // Author           : Andrew Beach
 | 
|---|
| 10 | // Created On       : Tus Jun 06 10:13:00 2017
 | 
|---|
| 11 | // Last Modified By : Andrew Beach
 | 
|---|
| 12 | // Last Modified On : Mon Nov  8 11:43:00 2020
 | 
|---|
| 13 | // Update Count     : 6
 | 
|---|
| 14 | //
 | 
|---|
| 15 | 
 | 
|---|
| 16 | #pragma once
 | 
|---|
| 17 | 
 | 
|---|
| 18 | #include <list>  // for list
 | 
|---|
| 19 | 
 | 
|---|
| 20 | class Declaration;
 | 
|---|
| 21 | namespace ast {
 | 
|---|
| 22 |         class TranslationUnit;
 | 
|---|
| 23 | }
 | 
|---|
| 24 | 
 | 
|---|
| 25 | namespace ControlStruct {
 | 
|---|
| 26 |         void translateThrows( std::list< Declaration *> & translationUnit );
 | 
|---|
| 27 |         void translateThrows( ast::TranslationUnit & transUnit );
 | 
|---|
| 28 |         /* Replaces all throw & throwResume statements with function calls.
 | 
|---|
| 29 |          * These still need to be resolved, so call this before the reslover.
 | 
|---|
| 30 |          */
 | 
|---|
| 31 | 
 | 
|---|
| 32 |         void translateTries( std::list< Declaration *> & translationUnit );
 | 
|---|
| 33 |         void translateTries( ast::TranslationUnit & transUnit );
 | 
|---|
| 34 |         /* Replaces all try blocks (and their many clauses) with function definitions and calls.
 | 
|---|
| 35 |          * This uses the exception built-ins to produce typed output and should take place after
 | 
|---|
| 36 |          * the resolver. It also produces virtual casts and should happen before they are expanded.
 | 
|---|
| 37 |          */
 | 
|---|
| 38 | }
 | 
|---|
| 39 | 
 | 
|---|
| 40 | // Local Variables: //
 | 
|---|
| 41 | // tab-width: 4 //
 | 
|---|
| 42 | // mode: c++ //
 | 
|---|
| 43 | // compile-command: "make install" //
 | 
|---|
| 44 | // End: //
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.