Changeset 0da3e2c for src/Parser/ParseNode.h
- Timestamp:
- Aug 16, 2016, 5:56:37 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 29917c6
- Parents:
- 7880579
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ParseNode.h
r7880579 r0da3e2c 10 10 // Created On : Sat May 16 13:28:16 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Aug 16 08:37:47201613 // Update Count : 5 2712 // Last Modified On : Tue Aug 16 11:46:11 2016 13 // Update Count : 533 14 14 // 15 15 … … 44 44 ParseNode( const std::string & ); // for copy constructing subclasses 45 45 virtual ~ParseNode(); 46 virtual ParseNode *clone() const { assert( false ); return nullptr; };46 virtual ParseNode *clone() const = 0; 47 47 48 48 ParseNode *get_next() const { return next; } … … 55 55 56 56 virtual void print( std::ostream &os, int indent = 0 ) const {} 57 virtual void printList( std::ostream &os, int indent = 0 ) const ;57 virtual void printList( std::ostream &os, int indent = 0 ) const {} 58 58 private: 59 59 static int indent_by; 60 60 61 ParseNode *next ;61 ParseNode *next = nullptr; 62 62 std::string name; 63 63 }; // ParseNode … … 70 70 InitializerNode( InitializerNode *, bool aggrp = false, ExpressionNode *des = 0 ); 71 71 ~InitializerNode(); 72 virtual InitializerNode *clone() const { assert( false ); return nullptr; } 72 73 73 74 ExpressionNode *get_expression() const { return expr; } … … 101 102 ExpressionNode( const ExpressionNode &other ); 102 103 virtual ~ExpressionNode() {} 103 104 104 virtual ExpressionNode *clone() const { assert( false ); return nullptr; } 105 105
Note: See TracChangeset
for help on using the changeset viewer.