Changeset 42107b4 for src/SynTree


Ignore:
Timestamp:
Apr 26, 2018, 1:32:53 PM (7 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
new-env, with_gc
Children:
7a37f258
Parents:
1cdfa82
git-author:
Aaron Moss <a3moss@…> (04/25/18 17:44:18)
git-committer:
Aaron Moss <a3moss@…> (04/26/18 13:32:53)
Message:

Leftover cleanup from merge

Location:
src/SynTree
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Declaration.cc

    r1cdfa82 r42107b4  
    8080}
    8181
    82 StaticAssertDecl::~StaticAssertDecl() {
    83         delete condition;
    84         delete message;
    85 }
    86 
    8782void StaticAssertDecl::print( std::ostream &os, Indenter indent ) const {
    8883        os << "Static Assert with condition: ";
  • src/SynTree/Declaration.h

    r1cdfa82 r42107b4  
    364364        StaticAssertDecl( Expression * condition, ConstantExpr * message );
    365365        StaticAssertDecl( const StaticAssertDecl & other );
    366         virtual ~StaticAssertDecl();
    367366
    368367        virtual StaticAssertDecl * clone() const override { return new StaticAssertDecl( *this ); }
  • src/SynTree/Expression.cc

    r1cdfa82 r42107b4  
    268268}
    269269
    270 KeywordCastExpr::~KeywordCastExpr() {
    271         delete arg;
    272 }
    273 
    274270const std::string & KeywordCastExpr::targetString() const {
    275271        static const std::string targetStrs[] = {
  • src/SynTree/Expression.h

    r1cdfa82 r42107b4  
    210210        KeywordCastExpr( Expression * arg, Target target );
    211211        KeywordCastExpr( const KeywordCastExpr & other );
    212         virtual ~KeywordCastExpr();
    213212
    214213        const std::string & targetString() const;
  • src/SynTree/GcTracer.h

    r1cdfa82 r42107b4  
    7878        }
    7979
     80        void postvisit( OffsetofExpr* expr ) {
     81                postvisit( static_cast<Expression*>(expr) );
     82                maybeAccept( expr->member, *visitor );
     83        }
     84
    8085        void postvisit( UniqueExpr* expr ) {
    8186                postvisit( static_cast<Expression*>(expr) );
Note: See TracChangeset for help on using the changeset viewer.