Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Declaration.h

    re994912 r3a5131ed  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Feb  9 14:27:08 2017
    13 // Update Count     : 56
     12// Last Modified On : Thu Feb 16 14:53:35 2017
     13// Update Count     : 57
    1414//
    1515
     
    1717#define DECLARATION_H
    1818
     19#include <string>
     20
     21#include "BaseSyntaxNode.h"
     22#include "Mutator.h"
     23#include "Visitor.h"
    1924#include "SynTree.h"
    20 #include "Visitor.h"
    21 #include "Mutator.h"
    2225#include "Parser/LinkageSpec.h"
    2326#include "Parser/ParseNode.h"
    24 #include <string>
    25 
    26 class Declaration {
     27
     28class Declaration : public BaseSyntaxNode {
    2729  public:
    2830        Declaration( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Spec linkage );
     
    138140        CompoundStmt *get_statements() const { return statements; }
    139141        void set_statements( CompoundStmt *newValue ) { statements = newValue; }
    140         std::list< std::string >& get_oldIdents() { return oldIdents; }
    141         std::list< Declaration* >& get_oldDecls() { return oldDecls; }
    142142
    143143        virtual FunctionDecl *clone() const { return new FunctionDecl( *this ); }
     
    149149        FunctionType *type;
    150150        CompoundStmt *statements;
    151         std::list< std::string > oldIdents;
    152         std::list< Declaration* > oldDecls;
    153151};
    154152
Note: See TracChangeset for help on using the changeset viewer.