Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/ExceptTranslateNew.cpp

    r400b8be rc36814a  
    3232        }
    3333
    34 class TranslateThrowsCore : public ast::WithGuards {
     34class TranslateThrowsCore final : public ast::WithGuards {
    3535        const ast::ObjectDecl * terminateHandlerExcept;
    3636        enum Context { NoHandler, TerHandler, ResHandler } currentContext;
     
    136136
    137137
    138 class TryMutatorCore {
     138class TryMutatorCore final {
    139139        // The built in types used in translation.
    140140        const ast::StructDecl * except_decl;
     
    190190                location,
    191191                "__handler_index",
    192                 new ast::BasicType(ast::BasicType::SignedInt),
    193                 nullptr, //init
    194                 ast::Storage::Classes{},
    195                 ast::Linkage::Cforall
     192                new ast::BasicType( ast::BasicType::SignedInt )
    196193                );
    197194}
     
    203200                location,
    204201                "__exception_inst",
    205                 new ast::PointerType(
    206                         new ast::StructInstType( except_decl )
    207                         ),
    208                 nullptr, //init
    209                 ast::Storage::Classes{},
    210                 ast::Linkage::Cforall
     202                new ast::PointerType( new ast::StructInstType( except_decl ) )
    211203                );
    212204}
Note: See TracChangeset for help on using the changeset viewer.