Changes in / [ca8704f:112fe04]
- Location:
- src
- Files:
-
- 5 edited
-
AST/Decl.cpp (modified) (2 diffs)
-
AST/Expr.cpp (modified) (1 diff)
-
AST/Fwd.hpp (modified) (2 diffs)
-
AST/Node.cpp (modified) (2 diffs)
-
include/cassert (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Decl.cpp
rca8704f r112fe04 81 81 auto result = eval( init->value ); 82 82 if ( ! result.second ) { 83 SemanticError( init->location, ::toString( "Non-constexpr in initialization of "83 SemanticError( init->location, toString( "Non-constexpr in initialization of " 84 84 "enumerator: ", field ) ); 85 85 } … … 87 87 } 88 88 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 ) ); 90 90 } 91 91 enumValues[ field->name ] = crntVal; -
src/AST/Expr.cpp
rca8704f r112fe04 22 22 #include "Stmt.hpp" 23 23 #include "Type.hpp" 24 #include "Common/utility.h"25 24 #include "Common/SemanticError.h" 26 25 #include "GenPoly/Lvalue.h" // for referencesPermissable -
src/AST/Fwd.hpp
rca8704f r112fe04 15 15 16 16 #pragma once 17 18 #include <string> 17 19 18 20 #include "AST/Node.hpp" … … 131 133 class TypeSubstitution; 132 134 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 133 143 typedef unsigned int UniqueId; 134 144 -
src/AST/Node.cpp
rca8704f r112fe04 16 16 #include "Node.hpp" 17 17 #include "Fwd.hpp" 18 19 #include <iostream>20 18 21 19 #include "Attribute.hpp" … … 44 42 assign( r ); 45 43 return r; 46 }47 48 std::ostream & ast::operator<< ( std::ostream & out, const ast::Node * node ) {49 (void)node;50 #warning unimplemented51 assertf(false, "Unimplemented");52 return out;53 44 } 54 45 -
src/include/cassert
rca8704f r112fe04 19 19 20 20 #include_next <cassert> 21 22 #include <string>23 24 template < typename ... Params >25 std::string toString( const Params & ... params );26 21 27 22 #ifdef NDEBUG
Note:
See TracChangeset
for help on using the changeset viewer.