Changeset e39241b for src/SynTree


Ignore:
Timestamp:
Apr 17, 2017, 5:43:01 PM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
7069652
Parents:
4ae83a4b
Message:

allow codegen as an alternative to AST dump after any pass with the -z option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Declaration.h

    r4ae83a4b re39241b  
    167167        std::list< DeclarationWithType* >& get_assertions() { return assertions; }
    168168
     169        virtual std::string typeString() const = 0;
     170
    169171        virtual NamedTypeDecl *clone() const = 0;
    170172        virtual void print( std::ostream &os, int indent = 0 ) const;
    171173        virtual void printShort( std::ostream &os, int indent = 0 ) const;
    172174  protected:
    173         virtual std::string typeString() const = 0;
    174175  private:
    175176        Type *base;
     
    202203        TypeDecl * set_sized( bool newValue ) { sized = newValue; return this; }
    203204
     205        virtual std::string typeString() const;
     206
    204207        virtual TypeDecl *clone() const { return new TypeDecl( *this ); }
    205208        virtual void accept( Visitor &v ) { v.visit( this ); }
    206209        virtual TypeDecl *acceptMutator( Mutator &m ) { return m.mutate( this ); }
    207210  private:
    208         virtual std::string typeString() const;
    209211        Kind kind;
    210212        bool sized;
     
    217219        TypedefDecl( const TypedefDecl &other ) : Parent( other ) {}
    218220
     221        virtual std::string typeString() const;
     222
    219223        virtual TypedefDecl *clone() const { return new TypedefDecl( *this ); }
    220224        virtual void accept( Visitor &v ) { v.visit( this ); }
    221225        virtual Declaration *acceptMutator( Mutator &m ) { return m.mutate( this ); }
    222226  private:
    223         virtual std::string typeString() const;
    224227};
    225228
Note: See TracChangeset for help on using the changeset viewer.