Changeset 0555f4b
- Timestamp:
- Aug 24, 2016, 12:37:56 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, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 486341f
- Parents:
- 79970ed (diff), f39096c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/DeclarationNode.cc
r79970ed r0555f4b 50 50 newnode->isInline = isInline; 51 51 newnode->isNoreturn = isNoreturn; 52 newnode->bitfieldWidth = bitfieldWidth;52 newnode->bitfieldWidth = maybeClone( bitfieldWidth ); 53 53 newnode->hasEllipsis = hasEllipsis; 54 newnode->initializer = initializer;54 newnode->initializer = maybeClone( initializer ); 55 55 newnode->set_next( maybeClone( get_next() ) ); 56 56 newnode->linkage = linkage; … … 804 804 *out++ = decl; 805 805 } // if 806 delete extr; 806 807 } // if 807 808 Declaration *decl = cur->build(); -
src/Parser/ParseNode.h
r79970ed r0555f4b 109 109 ExpressionNode( const ExpressionNode &other ); 110 110 virtual ~ExpressionNode() {} 111 virtual ExpressionNode *clone() const { assert( false ); returnnullptr; }111 virtual ExpressionNode *clone() const { return expr ? new ExpressionNode( expr->clone() ) : nullptr; } 112 112 113 113 bool get_extension() const { return extension; } -
src/Parser/StatementNode.cc
r79970ed r0555f4b 44 44 agg = decl; 45 45 } // if 46 stmt.reset( new DeclStmt( noLabels, maybe Build< Declaration >(agg) ) );46 stmt.reset( new DeclStmt( noLabels, maybeMoveBuild< Declaration >(agg) ) ); 47 47 } else { 48 48 assert( false ); -
src/Parser/TypeData.cc
r79970ed r0555f4b 182 182 break; 183 183 case Array: 184 newtype->array->dimension = array->dimension;184 newtype->array->dimension = maybeClone( array->dimension ); 185 185 newtype->array->isVarLen = array->isVarLen; 186 186 newtype->array->isStatic = array->isStatic; -
src/SynTree/Initializer.cc
r79970ed r0555f4b 43 43 44 44 SingleInit::~SingleInit() { 45 delete value; 45 46 deleteAll(designators); 46 47 }
Note: See TracChangeset
for help on using the changeset viewer.