Changeset 396ee0a for src/SynTree/Declaration.h
- Timestamp:
- Feb 22, 2017, 2:42:11 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 131dbb3, 692de479
- Parents:
- 0788b739 (diff), fc39193 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
r0788b739 r396ee0a 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 9 14:27:08201713 // Update Count : 5 612 // Last Modified On : Thu Feb 16 14:53:35 2017 13 // Update Count : 57 14 14 // 15 15 … … 17 17 #define DECLARATION_H 18 18 19 #include <string> 20 21 #include "BaseSyntaxNode.h" 22 #include "Mutator.h" 23 #include "Visitor.h" 19 24 #include "SynTree.h" 20 #include "Visitor.h"21 #include "Mutator.h"22 25 #include "Parser/LinkageSpec.h" 23 26 #include "Parser/ParseNode.h" 24 #include <string> 25 26 class Declaration { 27 28 class Declaration : public BaseSyntaxNode { 27 29 public: 28 30 Declaration( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Spec linkage ); … … 138 140 CompoundStmt *get_statements() const { return statements; } 139 141 void set_statements( CompoundStmt *newValue ) { statements = newValue; } 140 std::list< std::string >& get_oldIdents() { return oldIdents; }141 std::list< Declaration* >& get_oldDecls() { return oldDecls; }142 142 143 143 virtual FunctionDecl *clone() const { return new FunctionDecl( *this ); } … … 149 149 FunctionType *type; 150 150 CompoundStmt *statements; 151 std::list< std::string > oldIdents;152 std::list< Declaration* > oldDecls;153 151 }; 154 152
Note:
See TracChangeset
for help on using the changeset viewer.