Changeset 4eb31f2b for src/Common
- Timestamp:
- Jun 16, 2017, 3:22:50 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- f522618
- Parents:
- 7bd712d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/Common/PassVisitor.h ¶
r7bd712d r4eb31f2b 258 258 ~WithTypeSubstitution() = default; 259 259 260 public: 260 261 TypeSubstitution * env; 261 262 template<typename pass_type>263 friend class PassVisitor< pass_type>;264 262 }; 265 263 … … 269 267 ~WithStmtsToAdd() = default; 270 268 269 public: 271 270 std::list< Statement* > stmtsToAddBefore; 272 271 std::list< Statement* > stmtsToAddAfter; 273 274 template<typename pass_type>275 friend class PassVisitor< pass_type>;276 272 }; 277 273 … … 281 277 ~WithShortCircuiting() = default; 282 278 279 public: 283 280 bool skip_children; 284 285 template<typename pass_type>286 friend class PassVisitor< pass_type>;287 281 }; 288 282 … … 292 286 ~WithScopes() = default; 293 287 288 public: 294 289 at_cleanup_t at_cleanup; 295 290 291 template< typename T > 296 292 void GuardValue( T& val ) { 297 293 at_cleanup( [ val ]( void * newVal ) { … … 299 295 }, static_cast< void * >( & val ) ); 300 296 } 301 302 template<typename pass_type>303 friend class PassVisitor< pass_type>;304 297 }; 305 298
Note: See TracChangeset
for help on using the changeset viewer.