Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/ParseNode.h

    r4f147cc rac71a86  
    280280        LinkageSpec::Spec get_linkage() const { return linkage; }
    281281        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; }
    284283
    285284        bool get_extension() const { return extension; }
     
    296295        std::list< std::string > attributes;
    297296        ExpressionNode *bitfieldWidth;
    298         std::unique_ptr<ExpressionNode> enumeratorValue;
     297        ExpressionNode *enumeratorValue;
    299298        InitializerNode *initializer;
    300299        bool hasEllipsis;
     
    307306
    308307Type *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 }
    315308
    316309//##############################################################################
Note: See TracChangeset for help on using the changeset viewer.