Changes in / [37eef7a:4073b16]


Ignore:
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • doc/proposals/vtable.md

    r37eef7a r4073b16  
    220220    trait iterator(otype T, otype Item) {
    221221        bool has_next(T const &);
    222         Item get_next(T &);
     222        Item get_next(T const *);
    223223    }
    224224
  • src/AST/Convert.cpp

    r37eef7a r4073b16  
    12871287
    12881288        const ast::Designation * visit( const ast::Designation * node ) override final {
    1289                 auto designation = new Designation( get<Expression>().acceptL( node->designators ) );
    1290                 designation->location = node->location;
    1291                 this->node = designation;
     1289                (void)node;
    12921290                return nullptr;
    12931291        }
    12941292
    12951293        const ast::Init * visit( const ast::SingleInit * node ) override final {
    1296                 auto init = new SingleInit(
    1297                         get<Expression>().accept1( node->value ),
    1298                         ast::MaybeConstruct == node->maybeConstructed
    1299                 );
    1300                 init->location = node->location;
    1301                 this->node = init;
     1294                (void)node;
    13021295                return nullptr;
    13031296        }
    13041297
    13051298        const ast::Init * visit( const ast::ListInit * node ) override final {
    1306                 auto init = new ListInit(
    1307                         get<Initializer>().acceptL( node->initializers ),
    1308                         get<Designation>().acceptL( node->designations ),
    1309                         ast::MaybeConstruct == node->maybeConstructed
    1310                 );
    1311                 init->location = node->location;
    1312                 this->node = init;
     1299                (void)node;
    13131300                return nullptr;
    13141301        }
    13151302
    13161303        const ast::Init * visit( const ast::ConstructorInit * node ) override final {
    1317                 auto init = new ConstructorInit(
    1318                         get<Statement>().accept1( node->ctor ),
    1319                         get<Statement>().accept1( node->dtor ),
    1320                         get<Initializer>().accept1( node->init )
    1321                 );
    1322                 init->location = node->location;
    1323                 this->node = init;
     1304                (void)node;
    13241305                return nullptr;
    13251306        }
     
    26362617        }
    26372618
    2638         virtual void visit( Designation * old ) override final {
    2639                 this->node = new ast::Designation(
    2640                         old->location,
    2641                         GET_ACCEPT_V(designators, Expr)
    2642                 );
    2643         }
    2644 
    2645         virtual void visit( SingleInit * old ) override final {
    2646                 this->node = new ast::SingleInit(
    2647                         old->location,
    2648                         GET_ACCEPT_1(value, Expr),
    2649                         (old->get_maybeConstructed()) ? ast::MaybeConstruct : ast::DoConstruct
    2650                 );
    2651         }
    2652 
    2653         virtual void visit( ListInit * old ) override final {
    2654                 this->node = new ast::ListInit(
    2655                         old->location,
    2656                         GET_ACCEPT_V(initializers, Init),
    2657                         GET_ACCEPT_V(designations, Designation),
    2658                         (old->get_maybeConstructed()) ? ast::MaybeConstruct : ast::DoConstruct
    2659                 );
    2660         }
    2661 
    2662         virtual void visit( ConstructorInit * old ) override final {
    2663                 this->node = new ast::ConstructorInit(
    2664                         old->location,
    2665                         GET_ACCEPT_1(ctor, Stmt),
    2666                         GET_ACCEPT_1(dtor, Stmt),
    2667                         GET_ACCEPT_1(init, Init)
    2668                 );
     2619        virtual void visit( Designation * ) override final {
     2620
     2621        }
     2622
     2623        virtual void visit( SingleInit * ) override final {
     2624
     2625        }
     2626
     2627        virtual void visit( ListInit * ) override final {
     2628
     2629        }
     2630
     2631        virtual void visit( ConstructorInit * ) override final {
     2632
    26692633        }
    26702634
  • src/AST/Stmt.hpp

    r37eef7a r4073b16  
    9696};
    9797
    98 /// Assembly statement `asm ... ( "..." : ... )`
    9998class AsmStmt final : public Stmt {
    10099public:
     
    119118};
    120119
    121 /// C-preprocessor directive `#...`
    122120class DirectiveStmt final : public Stmt {
    123121public:
     
    134132};
    135133
    136 /// If conditional statement `if (...) ... else ...`
    137134class IfStmt final : public Stmt {
    138135public:
     
    154151};
    155152
    156 /// Switch or choose conditional statement `switch (...) { ... }`
    157153class SwitchStmt final : public Stmt {
    158154public:
     
    170166};
    171167
    172 /// Case label `case ...:` `default:`
    173168class CaseStmt final : public Stmt {
    174169public:
     
    188183};
    189184
    190 /// While loop `while (...) ...` `do ... while (...);
    191185class WhileStmt final : public Stmt {
    192186public:
     
    207201};
    208202
    209 /// For loop `for (... ; ... ; ...) ...`
    210203class ForStmt final : public Stmt {
    211204public:
     
    226219};
    227220
    228 /// Branch control flow statement `goto ...` `break` `continue` `fallthru`
    229221class BranchStmt final : public Stmt {
    230222public:
     
    254246};
    255247
    256 /// Return statement `return ...`
    257248class ReturnStmt final : public Stmt {
    258249public:
     
    268259};
    269260
    270 /// Throw statement `throw ...`
    271261class ThrowStmt final : public Stmt {
    272262public:
     
    287277};
    288278
    289 /// Try statement `try { ... } ...`
    290279class TryStmt final : public Stmt {
    291280public:
     
    305294};
    306295
    307 /// Catch clause of try statement
    308296class CatchStmt final : public Stmt {
    309297public:
     
    325313};
    326314
    327 /// Finally clause of try statement
    328315class FinallyStmt final : public Stmt {
    329316public:
     
    340327};
    341328
    342 /// Wait for concurrency statement `when (...) waitfor (... , ...) ... timeout(...) ... else ...`
    343329class WaitForStmt final : public Stmt {
    344330public:
     
    378364};
    379365
    380 /// With statement `with (...) ...`
    381366class WithStmt final : public Stmt {
    382367public:
     
    394379};
    395380
    396 /// Any declaration in a (compound) statement.
    397381class DeclStmt final : public Stmt {
    398382public:
     
    408392};
    409393
    410 /// Represents an implicit application of a constructor or destructor.
    411394class ImplicitCtorDtorStmt final : public Stmt {
    412395public:
Note: See TracChangeset for help on using the changeset viewer.