Changes in src/Parser/ParseNode.h [4f147cc:ab57786]
- File:
-
- 1 edited
-
src/Parser/ParseNode.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ParseNode.h
r4f147cc rab57786 10 10 // Created On : Sat May 16 13:28:16 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Aug 18 23:48:37201613 // Update Count : 54 212 // Last Modified On : Sun Aug 21 11:53:59 2016 13 // Update Count : 546 14 14 // 15 15 … … 280 280 LinkageSpec::Spec get_linkage() const { return linkage; } 281 281 DeclarationNode *extractAggregate() const; 282 bool has_enumeratorValue() const { return (bool)enumeratorValue; } 283 ExpressionNode *consume_enumeratorValue() const { return const_cast<DeclarationNode*>(this)->enumeratorValue.release(); } 282 ExpressionNode *get_enumeratorValue() const { return enumeratorValue; } 284 283 285 284 bool get_extension() const { return extension; } … … 296 295 std::list< std::string > attributes; 297 296 ExpressionNode *bitfieldWidth; 298 std::unique_ptr<ExpressionNode>enumeratorValue;297 ExpressionNode *enumeratorValue; 299 298 InitializerNode *initializer; 300 299 bool hasEllipsis; … … 307 306 308 307 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 }315 308 316 309 //############################################################################## … … 359 352 Statement *build_while( ExpressionNode *ctl, StatementNode *stmt, bool kind = false ); 360 353 Statement *build_for( ForCtl *forctl, StatementNode *stmt ); 361 Statement *build_branch( std::string identifier, BranchStmt::Type kind ); 354 Statement *build_branch( BranchStmt::Type kind ); 355 Statement *build_branch( std::string *identifier, BranchStmt::Type kind ); 362 356 Statement *build_computedgoto( ExpressionNode *ctl ); 363 357 Statement *build_return( ExpressionNode *ctl );
Note:
See TracChangeset
for help on using the changeset viewer.