Changeset e85a8631 for src/Parser/ParseNode.h
- Timestamp:
- Aug 22, 2016, 2:15:19 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:
- f87408e
- Parents:
- 04cdd9b (diff), 8d2844a (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ParseNode.h
r04cdd9b re85a8631 280 280 LinkageSpec::Spec get_linkage() const { return linkage; } 281 281 DeclarationNode *extractAggregate() const; 282 ExpressionNode *get_enumeratorValue() const { return enumeratorValue; } 282 bool has_enumeratorValue() const { return (bool)enumeratorValue; } 283 ExpressionNode *consume_enumeratorValue() const { return const_cast<DeclarationNode*>(this)->enumeratorValue.release(); } 283 284 284 285 bool get_extension() const { return extension; } … … 295 296 std::list< std::string > attributes; 296 297 ExpressionNode *bitfieldWidth; 297 ExpressionNode *enumeratorValue;298 std::unique_ptr<ExpressionNode> enumeratorValue; 298 299 InitializerNode *initializer; 299 300 bool hasEllipsis; … … 306 307 307 308 Type *buildType( TypeData *type ); 309 310 static inline Type * maybeMoveBuildType( const DeclarationNode *orig ) { 311 Type* ret = orig ? orig->buildType() : nullptr; 312 delete orig; 313 return ret; 314 } 308 315 309 316 //##############################################################################
Note: See TracChangeset
for help on using the changeset viewer.