Changes in src/GenPoly/DeclMutator.h [6b0b624:5f98ce5]
- File:
-
- 1 edited
-
src/GenPoly/DeclMutator.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/DeclMutator.h
r6b0b624 r5f98ce5 10 10 // Created On : Fri Nov 27 14:44:00 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Jul 22 09:21:12 201713 // Update Count : 412 // Last Modified On : Tue Jul 12 17:39:01 2016 13 // Update Count : 2 14 14 // 15 15 16 #pragma once 16 #ifndef _DECLMUTATOR_H 17 #define _DECLMUTATOR_H 17 18 18 19 #include <list> … … 26 27 /// Mutates a list of declarations, providing a means of adding new declarations into the list 27 28 class DeclMutator : public Mutator { 28 public:29 public: 29 30 typedef Mutator Parent; 30 31 … … 49 50 /// Called on exit from a scope; overriders should call this as a super-class call 50 51 virtual void doEndScope(); 51 protected:52 protected: 52 53 /// Mutate a statement that forms its own scope 53 54 Statement* mutateStatement( Statement *stmt ); … … 58 59 /// Add a declaration to the list to be added after the current position 59 60 void addDeclarationAfter( Declaration* decl ); 60 private:61 private: 61 62 /// A stack of declarations to add before the current declaration or statement 62 63 std::vector< std::list< Declaration* > > declsToAdd; … … 66 67 } // namespace 67 68 69 #endif // _DECLMUTATOR_H 70 68 71 // Local Variables: // 69 72 // tab-width: 4 //
Note:
See TracChangeset
for help on using the changeset viewer.