source: src/ControlStruct/ExceptTranslate.h @ a488783

ADTast-experimentalenumforall-pointer-decaypthread-emulationqualifiedEnum
Last change on this file since a488783 was 5ee153d, checked in by Andrew Beach <ajbeach@…>, 3 years ago

Translated the Translate Throws pass to the new ast.

  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[ba912706]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//
[5ee153d]7// ExceptTranslate.h -- Conversion of exception control flow structures.
[ba912706]8//
9// Author           : Andrew Beach
10// Created On       : Tus Jun 06 10:13:00 2017
[046a890]11// Last Modified By : Andrew Beach
[5ee153d]12// Last Modified On : Mon Nov  8 11:43:00 2020
13// Update Count     : 6
[ba912706]14//
15
[6b0b624]16#pragma once
[ba912706]17
[d180746]18#include <list>  // for list
19
20class Declaration;
[5ee153d]21namespace ast {
22        class TranslationUnit;
23}
[288eede]24
[307a732]25namespace ControlStruct {
[046a890]26        void translateThrows( std::list< Declaration *> & translationUnit );
[5ee153d]27        void translateThrows( ast::TranslationUnit & transUnit );
[046a890]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        /* Replaces all try blocks (and their many clauses) with function definitions and calls.
34         * This uses the exception built-ins to produce typed output and should take place after
[7119daa]35         * the resolver. It also produces virtual casts and should happen before they are expanded.
[046a890]36         */
[ba912706]37}
38
[6b0b624]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.