Changeset 733074e


Ignore:
Timestamp:
May 21, 2019, 3:56:27 PM (5 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:
ca8704f
Parents:
e0016a5
Message:

Removed stub for toString by moving to a more precise Stub

Location:
src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Decl.cpp

    re0016a5 r733074e  
    8181                                auto result = eval( init->value );
    8282                                if ( ! result.second ) {
    83                                         SemanticError( init->location, toString( "Non-constexpr in initialization of "
     83                                        SemanticError( init->location, ::toString( "Non-constexpr in initialization of "
    8484                                                "enumerator: ", field ) );
    8585                                }
     
    8787                        }
    8888                        if ( enumValues.count( field->name ) != 0 ) {
    89                                 SemanticError( location, toString( "Enum ", name, " has multiple members with the "     "name ", field->name ) );
     89                                SemanticError( location, ::toString( "Enum ", name, " has multiple members with the "   "name ", field->name ) );
    9090                        }
    9191                        enumValues[ field->name ] = crntVal;
  • src/AST/Expr.cpp

    re0016a5 r733074e  
    2222#include "Stmt.hpp"
    2323#include "Type.hpp"
     24#include "Common/utility.h"
    2425#include "Common/SemanticError.h"
    2526#include "GenPoly/Lvalue.h"        // for referencesPermissable
  • src/AST/Fwd.hpp

    re0016a5 r733074e  
    1515
    1616#pragma once
    17 
    18 #include <string>
    1917
    2018#include "AST/Node.hpp"
     
    133131class TypeSubstitution;
    134132
    135 std::string toString( const Node * );
    136 
    137 template < typename ... Params >
    138 std::string toString( const Params & ... params ) {
    139         #warning not implemented
    140         return "";
    141 }
    142 
    143133typedef unsigned int UniqueId;
    144134
  • src/AST/Node.cpp

    re0016a5 r733074e  
    1616#include "Node.hpp"
    1717#include "Fwd.hpp"
     18
     19#include <iostream>
    1820
    1921#include "Attribute.hpp"
     
    4244        assign( r );
    4345        return r;
     46}
     47
     48std::ostream & ast::operator<< ( std::ostream & out, const ast::Node * node ) {
     49        (void)node;
     50        #warning unimplemented
     51        assertf(false, "Unimplemented");
     52        return out;
    4453}
    4554
  • src/include/cassert

    re0016a5 r733074e  
    1919
    2020#include_next <cassert>
     21
     22#include <string>
     23
     24template < typename ... Params >
     25std::string toString( const Params & ... params );
    2126
    2227#ifdef NDEBUG
Note: See TracChangeset for help on using the changeset viewer.