Changes in src/Common/PassVisitor.h [e0886db:2065609]
- File:
-
- 1 edited
-
src/Common/PassVisitor.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Common/PassVisitor.h
re0886db r2065609 7 7 #include "SynTree/Mutator.h" 8 8 #include "SynTree/Visitor.h" 9 10 #include "SymTab/Indexer.h"11 9 12 10 #include "SynTree/Initializer.h" … … 267 265 268 266 void set_visit_children( bool& ref ) { bool_ref * ptr = visit_children_impl(pass, 0); if(ptr) ptr->set( ref ); } 269 270 void indexerScopeEnter () { indexer_impl_enterScope ( pass, 0 ); }271 void indexerScopeLeave () { indexer_impl_leaveScope ( pass, 0 ); }272 void indexerAddId ( DeclarationWithType * node ) { indexer_impl_addId ( pass, 0, node ); }273 void indexerAddType ( NamedTypeDecl * node ) { indexer_impl_addType ( pass, 0, node ); }274 void indexerAddStruct ( const std::string & id ) { indexer_impl_addStruct ( pass, 0, id ); }275 void indexerAddStruct ( StructDecl * node ) { indexer_impl_addStruct ( pass, 0, node ); }276 void indexerAddStructFwd( StructDecl * node ) { indexer_impl_addStructFwd( pass, 0, node ); }277 void indexerAddEnum ( EnumDecl * node ) { indexer_impl_addEnum ( pass, 0, node ); }278 void indexerAddUnion ( const std::string & id ) { indexer_impl_addUnion ( pass, 0, id ); }279 void indexerAddUnion ( UnionDecl * node ) { indexer_impl_addUnion ( pass, 0, node ); }280 void indexerAddUnionFwd ( UnionDecl * node ) { indexer_impl_addUnionFwd ( pass, 0, node ); }281 void indexerAddTrait ( TraitDecl * node ) { indexer_impl_addTrait ( pass, 0, node ); }282 283 template< typename TreeType, typename VisitorType >284 friend inline void indexerScopedAccept( TreeType * tree, VisitorType &visitor );285 286 template< typename TreeType, typename VisitorType >287 friend inline void indexerScopedMutate( TreeType *& tree, VisitorType &visitor );288 267 }; 289 268 … … 317 296 protected: 318 297 WithDeclsToAdd() = default; 319 ~WithDeclsToAdd() { 320 assert( declsToAddBefore.empty() ); 321 } 298 ~WithDeclsToAdd() = default; 322 299 323 300 public: … … 374 351 }; 375 352 376 class WithIndexer {377 protected:378 WithIndexer() {}379 ~WithIndexer() {}380 381 public:382 SymTab::Indexer indexer;383 };384 385 353 #include "PassVisitor.impl.h"
Note:
See TracChangeset
for help on using the changeset viewer.