Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Pass.hpp

    rc600df1 r6cebfef  
    348348
    349349        /// When this node is finished being visited, restore the value of a variable
    350         /// You may assign to the return value to set the new value in the same statement.
    351350        template< typename T >
    352         T& GuardValue( T& val ) {
     351        void GuardValue( T& val ) {
    353352                at_cleanup( [ val ]( void * newVal ) {
    354353                        * static_cast< T * >( newVal ) = val;
    355354                }, static_cast< void * >( & val ) );
    356                 return val;
    357355        }
    358356
     
    396394};
    397395
    398 /// Used to get a pointer to the wrapping TranslationUnit.
    399 struct WithConstTranslationUnit {
    400         const TranslationUnit * translationUnit = nullptr;
    401 
    402         const TranslationUnit & transUnit() const {
    403                 assertf( translationUnit, "WithConstTranslationUnit not set-up." );
    404                 return *translationUnit;
    405         }
    406 };
    407 
    408396}
    409397
Note: See TracChangeset for help on using the changeset viewer.