source: src/ControlStruct/ExceptTranslate.h @ 6c8b76b

Last change on this file since 6c8b76b was 539a8c8, checked in by Andrew Beach <ajbeach@…>, 11 months ago

Some general clean-up, removing bits and pieces from the old version.

  • 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// 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
18namespace ast {
19        class TranslationUnit;
20}
21
22namespace ControlStruct {
23
24void translateThrows( ast::TranslationUnit & transUnit );
25/* Replaces all throw & throwResume statements with function calls.
26 * These still need to be resolved, so call this before the reslover.
27 */
28
29void translateTries( ast::TranslationUnit & transUnit );
30/* Replaces all try blocks (and their many clauses) with function definitions and calls.
31 * This uses the exception built-ins to produce typed output and should take place after
32 * the resolver. It also produces virtual casts and should happen before they are expanded.
33 */
34
35}
36
37// Local Variables: //
38// tab-width: 4 //
39// mode: c++ //
40// compile-command: "make install" //
41// End: //
Note: See TracBrowser for help on using the repository browser.