Changes in / [8a4e472:2f8d351]


Ignore:
Location:
src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/GenType.h

    r8a4e472 r2f8d351  
    2020#include "CodeGen/Options.h" // for Options
    2121
     22class Type;
    2223namespace ast {
    2324        class Type;
     
    2526
    2627namespace CodeGen {
     28        std::string genType( Type *type, const std::string &baseString, const Options &options );
     29        std::string genType( Type *type, const std::string &baseString, bool pretty = false, bool genC = false, bool lineMarks = false );
     30        std::string genPrettyType( Type * type, const std::string & baseString );
    2731
    2832std::string genType( ast::Type const * type, const std::string & base, const Options & options );
  • src/ControlStruct/ExceptDecl.h

    r8a4e472 r2f8d351  
    1616#pragma once
    1717
     18#include <list>  // for list
     19
     20class Declaration;
     21
    1822namespace ast {
    1923        class TranslationUnit;
     
    2125
    2226namespace ControlStruct {
    23 
    2427/// Unfold exception declarations into raw structure declarations.
    2528/// Also builds vtable declarations and converts vtable types.
     29void translateExcept( std::list< Declaration *> & translationUnit );
    2630void translateExcept( ast::TranslationUnit & translationUnit );
    27 
    2831}
  • src/ControlStruct/ExceptTranslate.cpp

    r8a4e472 r2f8d351  
    2626namespace {
    2727
    28 typedef std::list<ast::CatchClause*> CatchList;
    29 
    30 void appendDeclStmt( ast::CompoundStmt * block, ast::DeclWithType * item ) {
    31         block->push_back( new ast::DeclStmt( block->location, item ) );
    32 }
     28        typedef std::list<ast::CatchClause*> CatchList;
     29
     30        void appendDeclStmt( ast::CompoundStmt * block, ast::DeclWithType * item ) {
     31                block->push_back(new ast::DeclStmt(block->location, item));
     32        }
    3333
    3434class TranslateThrowsCore final : public ast::WithGuards {
  • src/ControlStruct/ExceptTranslate.h

    r8a4e472 r2f8d351  
    1616#pragma once
    1717
     18#include <list>  // for list
     19
     20class Declaration;
    1821namespace ast {
    1922        class TranslationUnit;
     
    2124
    2225namespace 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         */
    2331
    24 void 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 
    29 void 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 
     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         */
    3538}
    3639
  • src/GenPoly/ScrubTypeVars.hpp

    r8a4e472 r2f8d351  
    1616#pragma once
    1717
    18 #include <cassert>            // for strict_dynamic_cast
     18#include <cassert>            // for assert
    1919
    2020#include "AST/Fwd.hpp"        // for Node
    21 #include "GenPoly.h"          // for TypeVarMap
     21#include "GenPoly.h"          // for TypeVarMap, isPolyType, isDynType
    2222
    2323namespace GenPoly {
Note: See TracChangeset for help on using the changeset viewer.