Changes in src/AST/Pass.hpp [e67991f:e16e27e1]
- File:
-
- 1 edited
-
src/AST/Pass.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Pass.hpp
re67991f re16e27e1 112 112 const ast::Stmt * visit( const ast::FinallyStmt * ) override final; 113 113 const ast::Stmt * visit( const ast::WaitForStmt * ) override final; 114 const ast:: Decl* visit( const ast::WithStmt * ) override final;114 const ast::Stmt * visit( const ast::WithStmt * ) override final; 115 115 const ast::NullStmt * visit( const ast::NullStmt * ) override final; 116 116 const ast::Stmt * visit( const ast::DeclStmt * ) override final; … … 293 293 at_cleanup( [func](void *) { func(); }, nullptr ); 294 294 } 295 296 /// When this node is finished being visited, call a member of an object.297 template<typename T>298 void GuardMethod( T * obj, void (T::*method)() ) {299 at_cleanup( [ method ]( void * object ) {300 static_cast< T * >( object )->method();301 }, static_cast< void * >( obj ) );302 }303 295 }; 304 296
Note:
See TracChangeset
for help on using the changeset viewer.