Changeset 77bfc80 for src/InitTweak


Ignore:
Timestamp:
May 17, 2019, 12:08:46 PM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
10a1225
Parents:
8ff178d
Message:

Fixed some warnings and better messaging for unimplemented stubs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/InitTweak.cc

    r8ff178d r77bfc80  
    437437                // const ast::Expr * callArg( const CallExpr * call, unsigned int pos ) {
    438438                //      if( pos >= call->args.size() ) {
    439                 //              assertf( false, "getCallArg for argument that doesn't exist: (%u); %s.", 
     439                //              assertf( false, "getCallArg for argument that doesn't exist: (%u); %s.",
    440440                //                      pos, toString( call ).c_str() );
    441441                //      }
     
    467467        }
    468468        const ast::Expr * getCallArg( const ast::Expr * call, unsigned pos ) {
    469                 assert(!"implemented; needs to build AST/Expr.cpp");
     469                (void)call;
     470                (void)pos;
     471                #warning unimplemented; needs to build AST/Expr.cpp
     472                assertf(false, "unimplemented; needs to build AST/Expr.cpp");
    470473                // if ( auto app = dynamic_cast< const ast::ApplicationExpr * >( call ) ) {
    471474                //      return callArg( app, pos );
     
    482485                //      return getCallArg( ctor->callExpr, pos );
    483486                // } else {
    484                 //      assertf( false, "Unexpected expression type passed to getCallArg: %s", 
     487                //      assertf( false, "Unexpected expression type passed to getCallArg: %s",
    485488                //              toString( call ).c_str() );
    486489                // }
     
    548551        }
    549552        const ast::Type* getPointerBase( const ast::Type* t ) {
    550                 assert(!"needs to build Type.cpp before inclusion");
     553                (void)t;
     554                #warning needs to build Type.cpp before inclusion
     555                assertf(false, "needs to build Type.cpp before inclusion");
    551556                // if ( const auto * p = dynamic_cast< const ast::PointerType * >( t ) ) {
    552557                //      return p->base;
Note: See TracChangeset for help on using the changeset viewer.