Changes in / [ca8704f:112fe04]


Ignore:
Location:
src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Decl.cpp

    rca8704f r112fe04  
    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

    rca8704f r112fe04  
    2222#include "Stmt.hpp"
    2323#include "Type.hpp"
    24 #include "Common/utility.h"
    2524#include "Common/SemanticError.h"
    2625#include "GenPoly/Lvalue.h"        // for referencesPermissable
  • src/AST/Fwd.hpp

    rca8704f r112fe04  
    1515
    1616#pragma once
     17
     18#include <string>
    1719
    1820#include "AST/Node.hpp"
     
    131133class TypeSubstitution;
    132134
     135std::string toString( const Node * );
     136
     137template < typename ... Params >
     138std::string toString( const Params & ... params ) {
     139        #warning not implemented
     140        return "";
     141}
     142
    133143typedef unsigned int UniqueId;
    134144
  • src/AST/Node.cpp

    rca8704f r112fe04  
    1616#include "Node.hpp"
    1717#include "Fwd.hpp"
    18 
    19 #include <iostream>
    2018
    2119#include "Attribute.hpp"
     
    4442        assign( r );
    4543        return r;
    46 }
    47 
    48 std::ostream & ast::operator<< ( std::ostream & out, const ast::Node * node ) {
    49         (void)node;
    50         #warning unimplemented
    51         assertf(false, "Unimplemented");
    52         return out;
    5344}
    5445
  • src/include/cassert

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