Changeset 733074e
- Timestamp:
 - May 21, 2019, 3:56:27 PM (6 years ago)
 - 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
 - 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
re0016a5 r733074e 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
re0016a5 r733074e 22 22 #include "Stmt.hpp" 23 23 #include "Type.hpp" 24 #include "Common/utility.h" 24 25 #include "Common/SemanticError.h" 25 26 #include "GenPoly/Lvalue.h" // for referencesPermissable  - 
      
src/AST/Fwd.hpp
re0016a5 r733074e 15 15 16 16 #pragma once 17 18 #include <string>19 17 20 18 #include "AST/Node.hpp" … … 133 131 class TypeSubstitution; 134 132 135 std::string toString( const Node * );136 137 template < typename ... Params >138 std::string toString( const Params & ... params ) {139 #warning not implemented140 return "";141 }142 143 133 typedef unsigned int UniqueId; 144 134  - 
      
src/AST/Node.cpp
re0016a5 r733074e 16 16 #include "Node.hpp" 17 17 #include "Fwd.hpp" 18 19 #include <iostream> 18 20 19 21 #include "Attribute.hpp" … … 42 44 assign( r ); 43 45 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; 44 53 } 45 54  - 
      
src/include/cassert
re0016a5 r733074e 19 19 20 20 #include_next <cassert> 21 22 #include <string> 23 24 template < typename ... Params > 25 std::string toString( const Params & ... params ); 21 26 22 27 #ifdef NDEBUG  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.