Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/SemanticError.cc

    rddcedfe r1a69a90  
    9090void SemanticErrorException::print() {
    9191        using std::to_string;
    92 
    93         errors.sort([](const error & lhs, const error & rhs) -> bool {
    94                 if(lhs.location.startsBefore(rhs.location)) return true;
    95                 if(rhs.location.startsBefore(lhs.location)) return false;
    96 
    97                 return lhs.description < rhs.description;
    98         });
    99 
    10092        for( auto err : errors ) {
    10193                std::cerr << ErrorHelpers::bold() << err.location << ErrorHelpers::error_str() << ErrorHelpers::reset_font() << err.description << std::endl;
Note: See TracChangeset for help on using the changeset viewer.