Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/ParseNode.h

    r0f8e4ac r7305915  
    1010// Created On       : Sat May 16 13:28:16 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Jun 13 16:04:47 2016
    13 // Update Count     : 240
     12// Last Modified On : Mon Jun 27 23:28:10 2016
     13// Update Count     : 242
    1414//
    1515
     
    2828//#include "SynTree/Declaration.h"
    2929#include "Common/UniqueName.h"
    30 #include "SynTree/Label.h"
    3130
    3231class ExpressionNode;
     
    285284        virtual void printOneLine( std::ostream &, int indent = 0) const;
    286285
    287         const std::list< Label > &get_labels() const { return labels; };
     286        const std::list< std::string > &get_labels() const { return labels; };
    288287        void append_label( std::string *label ) { labels.push_back( *label ); delete label; }
    289288  private:
    290         std::list< Label > labels;
     289        std::list< std::string > labels;
    291290};
    292291
     
    426425        ExpressionNode *get_enumeratorValue() const { return enumeratorValue; }
    427426
     427        bool get_extension() const { return extension; }
     428        DeclarationNode *set_extension( bool exten ) { extension = exten; return this; }
     429
    428430        DeclarationNode();
    429431        ~DeclarationNode();
     
    441443        bool hasEllipsis;
    442444        LinkageSpec::Type linkage;
     445        bool extension = false;
    443446
    444447        static UniqueName anonymous;
     
    477480        void addDeclaration( DeclarationNode *newDecl ) { decl = newDecl; }
    478481        void setCatchRest( bool newVal ) { isCatchRest = newVal; }
     482
     483        bool get_extension() const { return extension; }
     484        StatementNode *set_extension( bool exten ) { extension = exten; return this; }
    479485
    480486        std::string get_target() const;
     
    496502        DeclarationNode *decl;
    497503        bool isCatchRest;
     504        bool extension = false;
    498505}; // StatementNode
    499506
     
    525532        ExpressionNode *output, *input;
    526533        ConstantNode *clobber;
    527         std::list< Label > gotolabels;
     534        std::list<std::string> gotolabels;
    528535};
    529536
Note: See TracChangeset for help on using the changeset viewer.