Changes in / [c4f81702:7a15b7e]
- Location:
- src
- Files:
-
- 3 edited
-
AST/Pass.hpp (modified) (1 diff)
-
AST/Pass.impl.hpp (modified) (5 diffs)
-
Common/CodeLocation.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Pass.hpp
rc4f81702 r7a15b7e 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 > -
src/AST/Pass.impl.hpp
rc4f81702 r7a15b7e 160 160 161 161 template< typename core_t > 162 typename ast::Pass< core_t >::templateresult1<ast::Expr> ast::Pass< core_t >::call_accept( const ast::Expr * expr ) {162 ast::Pass< core_t >::result1<ast::Expr> ast::Pass< core_t >::call_accept( const ast::Expr * expr ) { 163 163 __pedantic_pass_assert( __visit_children() ); 164 164 __pedantic_pass_assert( expr ); … … 174 174 175 175 template< typename core_t > 176 typename ast::Pass< core_t >::templateresult1<ast::Stmt> ast::Pass< core_t >::call_accept( const ast::Stmt * stmt ) {176 ast::Pass< core_t >::result1<ast::Stmt> ast::Pass< core_t >::call_accept( const ast::Stmt * stmt ) { 177 177 __pedantic_pass_assert( __visit_children() ); 178 178 __pedantic_pass_assert( stmt ); … … 183 183 184 184 template< typename core_t > 185 typename ast::Pass< core_t >::templateresult1<ast::Stmt> ast::Pass< core_t >::call_accept_as_compound( const ast::Stmt * stmt ) {185 ast::Pass< core_t >::result1<ast::Stmt> ast::Pass< core_t >::call_accept_as_compound( const ast::Stmt * stmt ) { 186 186 __pedantic_pass_assert( __visit_children() ); 187 187 __pedantic_pass_assert( stmt ); … … 258 258 template< typename core_t > 259 259 template< template <class...> class container_t > 260 typename ast::Pass< core_t >::templateresultNstmt<container_t> ast::Pass< core_t >::call_accept( const container_t< ptr<Stmt> > & statements ) {260 ast::Pass< core_t >::resultNstmt<container_t> ast::Pass< core_t >::call_accept( const container_t< ptr<Stmt> > & statements ) { 261 261 __pedantic_pass_assert( __visit_children() ); 262 262 if( statements.empty() ) return {}; … … 346 346 template< typename core_t > 347 347 template< template <class...> class container_t, typename node_t > 348 typename ast::Pass< core_t >::templateresultN<container_t, node_t> ast::Pass< core_t >::call_accept( const container_t< ast::ptr<node_t> > & container ) {348 ast::Pass< core_t >::resultN<container_t, node_t> ast::Pass< core_t >::call_accept( const container_t< ast::ptr<node_t> > & container ) { 349 349 __pedantic_pass_assert( __visit_children() ); 350 350 if( container.empty() ) return {}; -
src/Common/CodeLocation.h
rc4f81702 r7a15b7e 26 26 CodeLocation() = default; 27 27 28 29 28 /// Create a new CodeLocation with the given values. 30 29 CodeLocation( const char* filename, int lineno ) … … 34 33 35 34 CodeLocation( const CodeLocation& rhs ) = default; 36 CodeLocation( CodeLocation&& rhs ) = default;37 CodeLocation& operator=( const CodeLocation & ) = default;38 CodeLocation& operator=( CodeLocation && ) = default;39 35 40 36 bool isSet () const {
Note:
See TracChangeset
for help on using the changeset viewer.