Changes in / [0019d77:79c907b]
- Location:
- src
- Files:
-
- 2 edited
-
AST/Pass.hpp (modified) (2 diffs)
-
ResolvExpr/Resolver.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Pass.hpp
r0019d77 r79c907b 8 8 // 9 9 // Author : Thierry Delisle 10 // Created On : Thu May 09 15: 37:05 201910 // Created On : Thu May 09 15::37::05 2019 11 11 // Last Modified By : 12 12 // Last Modified On : … … 84 84 85 85 virtual ~Pass() = default; 86 87 /// Construct and run a pass on a translation unit.88 template< typename... Args >89 static void run( std::list< ptr<Decl> > & decls, Args &&... args ) {90 Pass<pass_t> visitor( std::forward<Args>( args )... );91 accept_all( decls, visitor );92 }93 86 94 87 /// Storage for the actual pass -
src/ResolvExpr/Resolver.cc
r0019d77 r79c907b 1270 1270 1271 1271 void resolve( std::list< ast::ptr< ast::Decl > >& translationUnit ) { 1272 ast::Pass< Resolver_new >::run( translationUnit ); 1272 ast::Pass< Resolver_new > resolver; 1273 accept_all( translationUnit, resolver ); 1273 1274 } 1274 1275
Note:
See TracChangeset
for help on using the changeset viewer.