Ignore:
Timestamp:
Jul 31, 2023, 11:25:51 AM (12 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
f496046
Parents:
e0332dd
Message:

Added invariant to check that referenced declarations are in scope. This one took a while, I don't remember why forall pointer decay is involved.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Validate/ForallPointerDecay.cpp

    re0332dd r14c0f7b  
    214214                if ( dynamic_cast< const ast::FunctionType * >( type ) ) return;
    215215                SemanticError( obj->location,
    216                         toCString( "operator ", obj->name.c_str(), " is not "
    217                         "a function or function pointer." ) );
     216                        toCString( "operator ", obj->name.c_str(),
     217                        " is not a function or function pointer." ) );
    218218        }
    219219};
     
    237237        ast::Pass<AssertionFunctionFixer>::run( transUnit );
    238238        ast::Pass<OperatorChecker>::run( transUnit );
     239}
     240
     241void fixUniqueIds( ast::TranslationUnit & transUnit ) {
    239242        ast::Pass<UniqueFixCore>::run( transUnit );
    240243}
Note: See TracChangeset for help on using the changeset viewer.