Changes in src/AST/Pass.hpp [ee918356:f8143a6]
- File:
-
- 1 edited
-
src/AST/Pass.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Pass.hpp
ree918356 rf8143a6 265 265 result1<ast::Stmt> call_accept_as_compound(const ast::Stmt *); 266 266 267 template<typename it_t, template <class...> class container_t> 268 static inline void take_all_delta( it_t it, container_t<ast::ptr<ast::Decl>> * decls, bool * mutated = nullptr ) { 269 if(empty(decls)) return; 270 271 std::transform(decls->begin(), decls->end(), it, [](ast::ptr<ast::Decl>&& decl) -> auto { 272 auto loc = decl->location; 273 auto stmt = new DeclStmt( loc, decl.release() ); 274 return { {stmt}, -1, false }; 275 }); 276 decls->clear(); 277 if(mutated) *mutated = true; 278 } 279 267 280 // Container of statements 268 281 template< template <class...> class container_t >
Note:
See TracChangeset
for help on using the changeset viewer.