Changeset 7305915


Ignore:
Timestamp:
Jun 29, 2016, 2:29:59 PM (6 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
87b5bf0
Parents:
c017d5b
Message:

more parser code to handle extension

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/ParseNode.h

    rc017d5b 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
     
    425425        ExpressionNode *get_enumeratorValue() const { return enumeratorValue; }
    426426
     427        bool get_extension() const { return extension; }
     428        DeclarationNode *set_extension( bool exten ) { extension = exten; return this; }
     429
    427430        DeclarationNode();
    428431        ~DeclarationNode();
     
    440443        bool hasEllipsis;
    441444        LinkageSpec::Type linkage;
     445        bool extension = false;
    442446
    443447        static UniqueName anonymous;
     
    476480        void addDeclaration( DeclarationNode *newDecl ) { decl = newDecl; }
    477481        void setCatchRest( bool newVal ) { isCatchRest = newVal; }
     482
     483        bool get_extension() const { return extension; }
     484        StatementNode *set_extension( bool exten ) { extension = exten; return this; }
    478485
    479486        std::string get_target() const;
     
    495502        DeclarationNode *decl;
    496503        bool isCatchRest;
     504        bool extension = false;
    497505}; // StatementNode
    498506
Note: See TracChangeset for help on using the changeset viewer.